aboutsummaryrefslogtreecommitdiff
path: root/tests/test_imports.py
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2010-01-14 00:59:31 +0100
committerArmin Ronacher <armin.ronacher@active-4.com>2010-01-14 00:59:31 +0100
commita58698994813eb003448f9eda3bf00fa92ee226e (patch)
tree8e743500bb3f121daa177afbb1064df754f1eaf0 /tests/test_imports.py
parent7e40df0f7a97fb22510c978226b4ab6bd953fbec (diff)
downloadjinja-a58698994813eb003448f9eda3bf00fa92ee226e.tar.gz
Just to be on the sure side with that compiler optimization magic
--HG-- branch : trunk
Diffstat (limited to 'tests/test_imports.py')
-rw-r--r--tests/test_imports.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_imports.py b/tests/test_imports.py
index c217eabd..1758a59a 100644
--- a/tests/test_imports.py
+++ b/tests/test_imports.py
@@ -71,6 +71,12 @@ def test_choice_includes():
test_includes(t, x=['missing', 'header'])
t = test_env.from_string('{% include [x, "header"] %}')
test_includes(t, x='missing')
+ t = test_env.from_string('{% include x %}')
+ test_includes(t, x='header')
+ t = test_env.from_string('{% include x %}')
+ test_includes(t, x='header')
+ t = test_env.from_string('{% include [x] %}')
+ test_includes(t, x='header')
def test_include_ignoring_missing():