From 095305cb44e669c9e732eb7c90264795408bb4b8 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sun, 11 Sep 2005 15:18:04 +0000 Subject: Fixed #486 -- Fixed bug in template filter parsing in edge cases, and added unit tests. Thanks, Simon git-svn-id: http://code.djangoproject.com/svn/django/trunk@634 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/othertests/templates.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/othertests/templates.py b/tests/othertests/templates.py index 01b77db401..07b41f5b10 100644 --- a/tests/othertests/templates.py +++ b/tests/othertests/templates.py @@ -92,6 +92,9 @@ TEMPLATE_TESTS = { # Raise TemplateSyntaxError for empty block tags 'basic-syntax28': ("{% %}", {}, template.TemplateSyntaxError), + # Chained filters, with an argument to the first one + 'basic-syntax29': ('{{ var|removetags:"b i"|upper|lower }}', {"var": "Yes"}, "yes"), + ### IF TAG ################################################################ 'if-tag01': ("{% if foo %}yes{% else %}no{% endif %}", {"foo": True}, "yes"), 'if-tag02': ("{% if foo %}yes{% else %}no{% endif %}", {"foo": False}, "no"), -- cgit v1.3