summaryrefslogtreecommitdiff
path: root/tests/test_pystache.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_pystache.py')
-rw-r--r--tests/test_pystache.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_pystache.py b/tests/test_pystache.py
index 4298180..3f21a45 100644
--- a/tests/test_pystache.py
+++ b/tests/test_pystache.py
@@ -27,6 +27,11 @@ class TestPystache(unittest.TestCase):
ret = pystache.render(template, { 'name': 'Jon' })
self.assertEquals(ret, "I think Jon wants a , right Jon?")
+ def test_render_zero(self):
+ template = 'My value is {{value}}.'
+ ret = pystache.render(template, { 'value': 0 })
+ self.assertEquals(ret, 'My value is 0.')
+
def test_comments(self):
template = "What {{! the }} what?"
ret = pystache.render(template)