diff -r a7ffd11bb9d2 tests/regressiontests/templates/tests.py
a
|
b
|
class Templates(unittest.TestCase):
|
602 | 602 | # translation of a constant string |
603 | 603 | 'i18n13': ('{{ _("Page not found") }}', {'LANGUAGE_CODE': 'de'}, 'Seite nicht gefunden'), |
604 | 604 | |
605 | | ### HANDLING OF TEMPLATE_TAG_IF_INVALID ################################### |
| 605 | ### HANDLING OF TEMPLATE_STRING_IF_INVALID ################################### |
606 | 606 | |
607 | 607 | 'invalidstr01': ('{{ var|default:"Foo" }}', {}, ('Foo','INVALID')), |
608 | 608 | 'invalidstr02': ('{{ var|default_if_none:"Foo" }}', {}, ('','INVALID')), |