Just to be on the sure side with that compiler optimization magic
authorArmin Ronacher <armin.ronacher@active-4.com>
Wed, 13 Jan 2010 23:59:31 +0000 (00:59 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Wed, 13 Jan 2010 23:59:31 +0000 (00:59 +0100)
--HG--
branch : trunk

tests/test_imports.py

index c217eabd544350247bc6534199b17066b4621c5f..1758a59aaf76f82b2608b692d9a90f55df56fd74 100644 (file)
@@ -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():