From: Armin Ronacher Date: Wed, 13 Jan 2010 23:59:31 +0000 (+0100) Subject: Just to be on the sure side with that compiler optimization magic X-Git-Tag: 2.3~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a58698994813eb003448f9eda3bf00fa92ee226e;p=thirdparty%2Fjinja.git Just to be on the sure side with that compiler optimization magic --HG-- branch : trunk --- 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():