Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added a test that 'firstof' template filter doesn't auto-escape. cycl…

…e tag already has such a test (cycle20). Refs #10912

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9b93f1c01c1a8bd66649d4c874301de851e46808 1 parent 08bec4f
Adrian Holovaty authored December 09, 2011
1  tests/regressiontests/templates/tests.py
@@ -788,6 +788,7 @@ def get_template_tests(self):
788 788
             'firstof07': ('{% firstof a b "c" %}', {'a':0}, 'c'),
789 789
             'firstof08': ('{% firstof a b "c and d" %}', {'a':0,'b':0}, 'c and d'),
790 790
             'firstof09': ('{% firstof %}', {}, template.TemplateSyntaxError),
  791
+            'firstof10': ('{% firstof a %}', {'a': '<'}, '<'), # Variables are NOT auto-escaped.
791 792
 
792 793
             ### FOR TAG ###############################################################
793 794
             'for-tag01': ("{% for val in values %}{{ val }}{% endfor %}", {"values": [1, 2, 3]}, "123"),

0 notes on commit 9b93f1c

Please sign in to comment.
Something went wrong with that request. Please try again.