Commit e2ce832b by Chris Jerdonek

Merge branch 'issue_53' into development: closing issue #53

Added a passing test case to cover issue #53.
parents 20e89cf6 9aa11b7d
......@@ -94,6 +94,20 @@ class PystacheTests(object):
ret = pystache.render(template, {"spacing": True})
self.assertEquals(ret, "first second third")
def test_later_list_section_with_escapable_character(self):
"""
This is a simple test case intended to cover issue #53.
The test case failed with markupsafe enabled, as follows:
AssertionError: Markup(u'foo &lt;') != 'foo <'
"""
template = """{{#s1}}foo{{/s1}} {{#s2}}<{{/s2}}"""
context = {'s1': True, 's2': [True]}
actual = pystache.render(template, context)
self.assertEquals(actual, """foo <""")
class PystacheWithoutMarkupsafeTests(PystacheTests, unittest.TestCase):
......
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