Skip to content
Myr

Added anothe test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 4cccc22 · Browse files · 1 file+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:jinja2/testsuite/ext.py+4 added-1 removed
54 unmodified lines
55 'transvars1.html': '{% trans %}User: {{ num }}{% endtrans %}',56 'transvars2.html': '{% trans num=count %}User: {{ num }}{% endtrans %}',57 'transvars3.html': '{% trans count=num %}User: {{ count }}{% endtrans %}',58 'novars.html': '{% trans %}%(hello)s{% endtrans %}',59 'vars.html': '{% trans %}{{ foo }}%(foo)s{% endtrans %}'59 'vars.html': '{% trans %}{{ foo }}%(foo)s{% endtrans %}',60 'explicitvars.html': '{% trans foo="42" %}%(foo)s{% endtrans %}'61}626364languages = {
299 unmodified lines
364 t = newstyle_i18n_env.get_template('novars.html')365 assert t.render() == '%(hello)s'366 t = newstyle_i18n_env.get_template('vars.html')367 assert t.render(foo='42') == '42%(foo)s'368 t = newstyle_i18n_env.get_template('explicitvars.html')369 assert t.render() == '%(foo)s'370371372class AutoEscapeTestCase(JinjaTestCase):373
82 unmodified lines