From 68bf4678bf34ab16752b6ff8f2f7776676f6e4b9 Mon Sep 17 00:00:00 2001 From: Christopher Date: Sun, 27 Dec 2015 09:01:14 -0600 Subject: [PATCH] _is_jinja_tag and _is_block_tag were returning the result of RE.findall instead of a boolean. --- test_secretary.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test_secretary.py b/test_secretary.py index efc1bad..049b4b7 100644 --- a/test_secretary.py +++ b/test_secretary.py @@ -63,6 +63,10 @@ class RenderTestCase(TestCase): for test, expect in test_samples.items(): assert self.engine._encode_escape_chars(test) == expect + def _test_is_jinja_tag(self): + assert self._is_jinja_tag('{{ foo }}')=True + assert self._is_jinja_tag('{ foo }')==False + def test_create_test_node(self): assert self.engine.create_text_node(self.document, 'text').toxml() == 'text'