From: Dmitry Jemerov Date: Mon, 26 Sep 2011 17:05:46 +0000 (+0200) Subject: fix matching typo in tests, restore missing assert X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e3a5d8a93715f1301b0d8ce492110d154073408c;p=jinja2.git fix matching typo in tests, restore missing assert --- 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):