Author: mtredinnick
Date: 2007-11-17 06:18:09 -0600 (Sat, 17 Nov 2007)
New Revision: 6684
Modified:
django/trunk/tests/regressiontests/templates/filters.py
Log:
Fixed a couple of chained filter tests that weren't demonstrating what they
claimed (since the "cut" filter's behaviour had changed since I originally
wrote those tests).
Modified: django/trunk/tests/regressiontests/templates/filters.py
===================================================================
--- django/trunk/tests/regressiontests/templates/filters.py 2007-11-17
12:12:40 UTC (rev 6683)
+++ django/trunk/tests/regressiontests/templates/filters.py 2007-11-17
12:18:09 UTC (rev 6684)
@@ -213,10 +213,10 @@
# Force to safe, then back (also showing why using force_escape too
# early in a chain can lead to unexpected results).
- 'chaining07': ('{{ a|force_escape|cut:"b" }}', {"a": "a < b"}, "a <
"),
- 'chaining08': ('{% autoescape off %}{{ a|force_escape|cut:"b" }}{%
endautoescape %}', {"a": "a < b"}, "a < "),
- 'chaining09': ('{{ a|cut:"b"|force_escape }}', {"a": "a < b"}, "a <
"),
- 'chaining10': ('{% autoescape off %}{{ a|cut:"b"|force_escape }}{%
endautoescape %}', {"a": "a < b"}, "a < "),
+ 'chaining07': ('{{ a|force_escape|cut:";" }}', {"a": "a < b"}, "a
&lt b"),
+ 'chaining08': ('{% autoescape off %}{{ a|force_escape|cut:";" }}{%
endautoescape %}', {"a": "a < b"}, "a < b"),
+ 'chaining09': ('{{ a|cut:";"|force_escape }}', {"a": "a < b"}, "a <
b"),
+ 'chaining10': ('{% autoescape off %}{{ a|cut:";"|force_escape }}{%
endautoescape %}', {"a": "a < b"}, "a < b"),
'chaining11': ('{{ a|cut:"b"|safe }}', {"a": "a < b"}, "a < "),
'chaining12': ('{% autoescape off %}{{ a|cut:"b"|safe }}{%
endautoescape %}', {"a": "a < b"}, "a < "),
'chaining13': ('{{ a|safe|force_escape }}', {"a": "a < b"}, "a <
b"),
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---