diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-06-18 04:12:55 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-06-18 04:12:55 +0000 |
| commit | 75a8a32f8629b47135890ac6ecda061a616d1cfc (patch) | |
| tree | b0bd5f35ffd7c1d48e334b41517b8a55ad11795d /tests | |
| parent | 4540a85ddabd9303955b88f5f727a7ede6161253 (diff) | |
Fixed #2181 -- allow '{' and '}' to be escaped via {% templatetag ... %}.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/othertests/templates.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/othertests/templates.py b/tests/othertests/templates.py index 47504d6ffd..96ad330917 100644 --- a/tests/othertests/templates.py +++ b/tests/othertests/templates.py @@ -499,6 +499,10 @@ TEMPLATE_TESTS = { 'templatetag04': ('{% templatetag closevariable %}', {}, '}}'), 'templatetag05': ('{% templatetag %}', {}, template.TemplateSyntaxError), 'templatetag06': ('{% templatetag foo %}', {}, template.TemplateSyntaxError), + 'templatetag07': ('{% templatetag openbrace %}', {}, '{'), + 'templatetag08': ('{% templatetag closebrace %}', {}, '}'), + 'templatetag09': ('{% templatetag openbrace %}{% templatetag openbrace %}', {}, '{{'), + 'templatetag10': ('{% templatetag closebrace %}{% templatetag closebrace %}', {}, '}}'), ### WIDTHRATIO TAG ######################################################## 'widthratio01': ('{% widthratio a b 0 %}', {'a':50,'b':100}, '0'), |
