Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  tests/regressiontests/templates/tests.py
View
1  tests/regressiontests/templates/tests.py
@@ -788,6 +788,7 @@ def get_template_tests(self):
'firstof07': ('{% firstof a b "c" %}', {'a':0}, 'c'),
'firstof08': ('{% firstof a b "c and d" %}', {'a':0,'b':0}, 'c and d'),
'firstof09': ('{% firstof %}', {}, template.TemplateSyntaxError),
+ 'firstof10': ('{% firstof a %}', {'a': '<'}, '<'), # Variables are NOT auto-escaped.
### FOR TAG ###############################################################
'for-tag01': ("{% for val in values %}{{ val }}{% endfor %}", {"values": [1, 2, 3]}, "123"),
Please sign in to comment.
Something went wrong with that request. Please try again.