summaryrefslogtreecommitdiff
path: root/tests/test_templite.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_templite.py')
-rw-r--r--tests/test_templite.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_templite.py b/tests/test_templite.py
index a4667a62..aa697b78 100644
--- a/tests/test_templite.py
+++ b/tests/test_templite.py
@@ -31,8 +31,10 @@ class TempliteTest(CoverageTest):
an exception and never get to the result comparison.
"""
actual = Templite(text).render(ctx or {})
- if result:
- self.assertEqual(actual, result)
+ # If result is None, then an exception should have prevented us getting
+ # to here.
+ assert result is not None
+ self.assertEqual(actual, result)
def assertSynErr(self, msg):
"""Assert that a `TempliteSyntaxError` will happen.