Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #14818 -- Added explicit tests for the way that the cycle tag h…

…andles escaping. Thanks to steveire.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15335 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 456b8a9d0c3c4cbff2e3d88b659c6e4e3e6c7def 1 parent 7012042
@freakboy3742 freakboy3742 authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  tests/regressiontests/templates/tests.py
View
2  tests/regressiontests/templates/tests.py
@@ -693,6 +693,8 @@ def get_template_tests(self):
'cycle17': ("{% cycle 'a' 'b' 'c' as abc silent %}{% cycle abc %}{% cycle abc %}{% cycle abc %}{% cycle abc %}", {}, "abca"),
'cycle18': ("{% cycle 'a' 'b' 'c' as foo invalid_flag %}", {}, template.TemplateSyntaxError),
'cycle19': ("{% cycle 'a' 'b' as silent %}{% cycle silent %}", {}, "ab"),
+ 'cycle20': ("{% cycle one two as foo %} & {% cycle foo %}", {'one' : 'A & B', 'two' : 'C & D'}, "A & B & C & D"),
+ 'cycle21': ("{% filter force_escape %}{% cycle one two as foo %} & {% cycle foo %}{% endfilter %}", {'one' : 'A & B', 'two' : 'C & D'}, "A & B & C & D"),
### EXCEPTIONS ############################################################
Please sign in to comment.
Something went wrong with that request. Please try again.