diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2010-07-06 12:00:33 +0200 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2010-07-06 12:00:33 +0200 |
commit | 3ca776188bb7396d54159a321729ea1d3ac4f9b2 (patch) | |
tree | 5349761eef1ac8d35ecedacbc2fa86dd340dfa33 | |
parent | 4cccc222625748a6f9f19d266958023d4df02271 (diff) | |
download | jinja2-3ca776188bb7396d54159a321729ea1d3ac4f9b2.tar.gz |
Added anothe test
--HG--
branch : trunk
-rw-r--r-- | jinja2/testsuite/ext.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jinja2/testsuite/ext.py b/jinja2/testsuite/ext.py index 530fed4..89b8579 100644 --- a/jinja2/testsuite/ext.py +++ b/jinja2/testsuite/ext.py @@ -56,7 +56,8 @@ newstyle_i18n_templates = { 'transvars2.html': '{% trans num=count %}User: {{ num }}{% endtrans %}', 'transvars3.html': '{% trans count=num %}User: {{ count }}{% endtrans %}', 'novars.html': '{% trans %}%(hello)s{% endtrans %}', - 'vars.html': '{% trans %}{{ foo }}%(foo)s{% endtrans %}' + 'vars.html': '{% trans %}{{ foo }}%(foo)s{% endtrans %}', + 'explicitvars.html': '{% trans foo="42" %}%(foo)s{% endtrans %}' } @@ -364,6 +365,8 @@ class NewstyleInternationalizationTestCase(JinjaTestCase): assert t.render() == '%(hello)s' t = newstyle_i18n_env.get_template('vars.html') assert t.render(foo='42') == '42%(foo)s' + t = newstyle_i18n_env.get_template('explicitvars.html') + assert t.render() == '%(foo)s' class AutoEscapeTestCase(JinjaTestCase): |