Ticket #20650: tests-ticket-20650.diff

File tests-ticket-20650.diff, 898 bytes (added by Baptiste Mispelon, 11 years ago)
  • tests/template_tests/tests.py

    diff --git a/tests/template_tests/tests.py b/tests/template_tests/tests.py
    index 206c648..e281662 100644
    a b class TemplateTests(TransRealMixin, TestCase):  
    854854            'filter02': ('{% filter upper %}django{% endfilter %}', {}, 'DJANGO'),
    855855            'filter03': ('{% filter upper|lower %}django{% endfilter %}', {}, 'django'),
    856856            'filter04': ('{% filter cut:remove %}djangospam{% endfilter %}', {'remove': 'spam'}, 'django'),
     857            'filter05': ('{% filter safe %}fail{% endfilter %}', {}, template.TemplateSyntaxError),
     858            'filter06': ('{% filter escape %}fail{% endfilter %}', {}, template.TemplateSyntaxError),
    857859
    858860            ### FIRSTOF TAG ###########################################################
    859861            'firstof01': ('{% firstof a b c %}', {'a':0,'b':0,'c':0}, ''),
Back to Top