Commit 14bc1cc6 by Chris Jerdonek

Merge branch 'issue_35' into development: closing issue #35

parents f6ea985c ef396e5d
......@@ -285,6 +285,17 @@ class RenderTests(unittest.TestCase):
context = {'foo': True}
self._assert_render(u"bar", template, context)
def test_custom_delimiters__not_retroactive(self):
"""
Check that changing custom delimiters back is not "retroactive."
Test case for issue #35: https://github.com/defunkt/pystache/issues/35
"""
expected = u' {{foo}} '
self._assert_render(expected, '{{=$ $=}} {{foo}} ')
self._assert_render(expected, '{{=$ $=}} {{foo}} $={{ }}=$') # was yielding u' '.
def test_sections__nested_truthy(self):
"""
Check that "nested truthy" sections get rendered.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment