diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-04-30 21:01:06 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-04-30 21:01:06 +0200 |
| commit | ddfc7c2530197112fb105b6dd237574bc2fd6b49 (patch) | |
| tree | f016344d285a2ecddee8ae8c4c73f55e108203b8 /tests | |
| parent | 78ba9670af373f5261f95d6560bfd08425adcaad (diff) | |
Fixed #4746 -- Allowed spaces around filter separator.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/templates/tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/regressiontests/templates/tests.py b/tests/regressiontests/templates/tests.py index 7de27a08a9..d4ef2aa574 100644 --- a/tests/regressiontests/templates/tests.py +++ b/tests/regressiontests/templates/tests.py @@ -634,11 +634,11 @@ class Templates(unittest.TestCase): # Chained filters 'filter-syntax02': ("{{ var|upper|lower }}", {"var": "Django is the greatest!"}, "django is the greatest!"), - # Raise TemplateSyntaxError for space between a variable and filter pipe - 'filter-syntax03': ("{{ var |upper }}", {}, template.TemplateSyntaxError), + # Allow spaces before the filter pipe + 'filter-syntax03': ("{{ var |upper }}", {"var": "Django is the greatest!"}, "DJANGO IS THE GREATEST!"), - # Raise TemplateSyntaxError for space after a filter pipe - 'filter-syntax04': ("{{ var| upper }}", {}, template.TemplateSyntaxError), + # Allow spaces after the filter pipe + 'filter-syntax04': ("{{ var| upper }}", {"var": "Django is the greatest!"}, "DJANGO IS THE GREATEST!"), # Raise TemplateSyntaxError for a nonexistent filter 'filter-syntax05': ("{{ var|does_not_exist }}", {}, template.TemplateSyntaxError), |
