diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2017-01-08 15:35:54 +0100 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2017-01-08 15:35:56 +0100 |
commit | 90ac7644d0fcdddf4a20dd0ae51e7189202d133c (patch) | |
tree | 3249196229d8d69e4fa06b587d4f1982e84ab757 /tests/test_ext.py | |
parent | 75bbd40730c9d3713cc1f090478c9cf588ba2118 (diff) | |
download | jinja2-90ac7644d0fcdddf4a20dd0ae51e7189202d133c.tar.gz |
Implement with-tag with a custom node
Diffstat (limited to 'tests/test_ext.py')
-rw-r--r-- | tests/test_ext.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_ext.py b/tests/test_ext.py index 9ec5ac3..1301d22 100644 --- a/tests/test_ext.py +++ b/tests/test_ext.py @@ -329,9 +329,9 @@ class TestScope(object): env = Environment(extensions=[ScopeExt]) tmpl = env.from_string('''\ - {%- with a=1, b=2, c=b, d=e, e=5 -%} + {%- scope a=1, b=2, c=b, d=e, e=5 -%} {{ a }}|{{ b }}|{{ c }}|{{ d }}|{{ e }} - {%- endwith -%} + {%- endscope -%} ''') assert tmpl.render(b=3, e=4) == '1|2|2|4|5' |