aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_template.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_template.py')
-rw-r--r--test/test_template.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/test_template.py b/test/test_template.py
index 970565a..204ee3b 100644
--- a/test/test_template.py
+++ b/test/test_template.py
@@ -509,7 +509,17 @@ class ControlTest(TemplateTest):
"no x does not have test",
"yes x has test"
]
-
+
+ def test_blank_control(self):
+ self._do_memory_test(
+ """
+ % if True:
+ % endif
+ """,
+ "",
+ filters=lambda s:s.strip()
+ )
+
def test_multiline_control(self):
t = Template("""
% for x in \\