Ticket #24847: repro-24847.patch

File repro-24847.patch, 676 bytes (added by Baptiste Mispelon, 9 years ago)

Reproduction testcase

  • new file tests/issue24847/tests.py

    diff --git a/tests/issue24847/__init__.py b/tests/issue24847/__init__.py
    new file mode 100644
    index 0000000..e69de29
    diff --git a/tests/issue24847/tests.py b/tests/issue24847/tests.py
    new file mode 100644
    index 0000000..c333b06
    - +  
     1from django.http import HttpRequest
     2from django.template import Template, RequestContext
     3from django.test import TestCase
     4
     5class ReproductionTestCase(TestCase):
     6    def test_issue_24847(self):
     7        template = Template('{{ foo }}')
     8        context = RequestContext(HttpRequest(), {})
     9        context['foo'] = 'foo'
     10        self.assertEqual(template.render(context), 'foo')
Back to Top