Ticket #27146: 27146-test.diff

File 27146-test.diff, 714 bytes (added by Tim Graham, 8 years ago)
  • tests/template_tests/syntax_tests/test_filter_syntax.py

    diff --git a/tests/template_tests/syntax_tests/test_filter_syntax.py b/tests/template_tests/syntax_tests/test_filter_syntax.py
    index e9f0491..fb55875 100644
    a b from ..utils import SomeClass, SomeOtherException, UTF8Class, setup  
    99
    1010class FilterSyntaxTests(SimpleTestCase):
    1111
     12    @setup({"t": "{{ var }}"})
     13    def test_filter_syntax00(self):
     14        output = self.engine.render_to_string('t', {"var": "\x93 and \x94"})
     15        self.assertEqual(output, "\x93 and \x94")
     16
    1217    @setup({'filter-syntax01': '{{ var|upper }}'})
    1318    def test_filter_syntax01(self):
    1419        """
Back to Top