Skip to content
Myr

Added a testcase for add_extension

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 8a3d93b · Browse files · 1 file+6 added−0 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+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:jinja2/testsuite/ext.py+6 added
156 unmodified lines
157158159class ExtensionsTestCase(JinjaTestCase):160161 def test_extend_late(self):162 env = Environment()163 env.add_extension('jinja2.ext.autoescape')164 t = env.from_string('{% autoescape true %}{{ "<test>" }}{% endautoescape %}')165 assert t.render() == '&lt;test&gt;'166167 def test_loop_controls(self):168 env = Environment(extensions=['jinja2.ext.loopcontrols'])169170 tmpl = env.from_string('''
244 unmodified lines