Fixed a broken unittest and fixed a bug that required multiple tests to be put into parentheses for chaning.
--HG--
branch : trunk
diff --git a/tests/test_syntax.py b/tests/test_syntax.py
index a126b5f..986125c 100644
--- a/tests/test_syntax.py
+++ b/tests/test_syntax.py
@@ -171,3 +171,8 @@
str(const), str(const).lower(), str(const).upper()
))
assert tmpl.render() == '%s|%s|' % (const, const)
+
+
+def test_test_chaining(env):
+ raises(TemplateSyntaxError, env.from_string, '{{ foo is string is sequence }}')
+ env.from_string('{{ 42 is string or 42 is number }}').render() == 'True'