@@ -21,7 +21,8 @@ class TestSimple(unittest.TestCase):
...
@@ -21,7 +21,8 @@ class TestSimple(unittest.TestCase):
deftest_empty_context(self):
deftest_empty_context(self):
view=ComplexView()
view=ComplexView()
self.assertEquals(pystache.Renderer('{{#empty_list}}Shouldnt see me {{/empty_list}}{{^empty_list}}Should see me{{/empty_list}}',view).render(),"Should see me")
template='{{#empty_list}}Shouldnt see me {{/empty_list}}{{^empty_list}}Should see me{{/empty_list}}'
self.assertEquals(pystache.Renderer().render(template),"Should see me")
deftest_callables(self):
deftest_callables(self):
view=Lambdas()
view=Lambdas()
...
@@ -38,8 +39,8 @@ class TestSimple(unittest.TestCase):
...
@@ -38,8 +39,8 @@ class TestSimple(unittest.TestCase):