Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added a testcase for add_extension

--HG--
branch : trunk
  • Loading branch information...
commit a4c78436661afc2c588db49fef11e962757a0b6b 1 parent 8a3d93b
@mitsuhiko authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 jinja2/testsuite/ext.py
View
6 jinja2/testsuite/ext.py
@@ -158,6 +158,12 @@ def interpolate(self, token):
class ExtensionsTestCase(JinjaTestCase):
+ def test_extend_late(self):
+ env = Environment()
+ env.add_extension('jinja2.ext.autoescape')
+ t = env.from_string('{% autoescape true %}{{ "<test>" }}{% endautoescape %}')
+ assert t.render() == '&lt;test&gt;'
+
def test_loop_controls(self):
env = Environment(extensions=['jinja2.ext.loopcontrols'])
Please sign in to comment.
Something went wrong with that request. Please try again.