summaryrefslogtreecommitdiff
path: root/jinja2
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2011-09-26 19:05:46 +0200
committerDmitry Jemerov <yole@jetbrains.com>2011-09-26 19:05:46 +0200
commite3a5d8a93715f1301b0d8ce492110d154073408c (patch)
tree6cecd969a8ceed7d1b13df480d6abbd28781d58c /jinja2
parent4e1bded46c1f34f0306608a35bd81d1cde38e50c (diff)
downloadjinja2-e3a5d8a93715f1301b0d8ce492110d154073408c.tar.gz
fix matching typo in tests, restore missing assert
Diffstat (limited to 'jinja2')
-rw-r--r--jinja2/testsuite/lexnparse.py6
1 files 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):