diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-02-08 11:06:54 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-02-08 11:06:54 +0100 |
| commit | 02add43568b694ef25afeae474b5b1da883826c6 (patch) | |
| tree | 9234f67a58a58a9560c3543bd1d37f19cf1801da /tests | |
| parent | 8847a0c601e4261823b1726b2db73eec2ac17940 (diff) | |
Fixed #21417 -- Expanded TEMPLATE_STRING_IF_INVALID in blocktrans
Thanks keturn for the reporti, Chris Medrela for details and
Tim Graham for the review.
Refs #19915.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/template_tests/tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/template_tests/tests.py b/tests/template_tests/tests.py index 4dcf0281a4..8e73e91693 100644 --- a/tests/template_tests/tests.py +++ b/tests/template_tests/tests.py @@ -1507,6 +1507,8 @@ class TemplateTests(TestCase): 'invalidstr04_2': ('{% if var|default:"Foo" %}Yes{% else %}No{% endif %}', {}, 'Yes'), 'invalidstr05': ('{{ var }}', {}, ('', ('INVALID %s', 'var'))), 'invalidstr06': ('{{ var.prop }}', {'var': {}}, ('', ('INVALID %s', 'var.prop'))), + 'invalidstr07': ('{% load i18n %}{% blocktrans %}{{ var }}{% endblocktrans %}', + {}, ('', ('INVALID %s', 'var'))), ### MULTILINE ############################################################# |
