summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jinja2/testsuite/ext.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/jinja2/testsuite/ext.py b/jinja2/testsuite/ext.py
index 98e4161..f97853d 100644
--- a/jinja2/testsuite/ext.py
+++ b/jinja2/testsuite/ext.py
@@ -158,6 +158,12 @@ class StreamFilterExtension(Extension):
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'])