From e3a5d8a93715f1301b0d8ce492110d154073408c Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 26 Sep 2011 19:05:46 +0200 Subject: [PATCH] fix matching typo in tests, restore missing assert --- jinja2/testsuite/lexnparse.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jinja2/testsuite/lexnparse.py b/jinja2/testsuite/lexnparse.py index 1ac08f3..77b76ec 100644 --- a/jinja2/testsuite/lexnparse.py +++ b/jinja2/testsuite/lexnparse.py @@ -169,7 +169,7 @@ and bar comment #} except TemplateSyntaxError, e: assert str(e) == expected, 'unexpected error message' else: - assert False, 'that was suposed to be an error' + assert False, 'that was supposed to be an error' assert_error('{% for item in seq %}...{% endif %}', "Encountered unknown tag 'endif'. Jinja was looking " @@ -189,7 +189,7 @@ and bar comment #} "that needs to be closed is 'for'.") assert_error('{% block foo-bar-baz %}', "Block names in Jinja have to be valid Python identifiers " - "and may not contain hypens, use an underscore instead.") + "and may not contain hyphens, use an underscore instead.") assert_error('{% unknown_tag %}', "Encountered unknown tag 'unknown_tag'.") @@ -327,7 +327,7 @@ class SyntaxTestCase(JinjaTestCase): def test_test_chaining(self): self.assert_raises(TemplateSyntaxError, env.from_string, '{{ foo is string is sequence }}') - env.from_string('{{ 42 is string or 42 is number }}' + assert env.from_string('{{ 42 is string or 42 is number }}' ).render() == 'True' def test_string_concatenation(self): -- 2.26.2