diff options
Diffstat (limited to 'tests/test_simple.py')
-rw-r--r-- | tests/test_simple.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_simple.py b/tests/test_simple.py index 0631574..aba0e89 100644 --- a/tests/test_simple.py +++ b/tests/test_simple.py @@ -14,9 +14,12 @@ from tests.common import AssertStringMixin class TestSimple(unittest.TestCase, AssertStringMixin): def test_nested_context(self): - view = NestedContext() + renderer = Renderer() + view = NestedContext(renderer) view.template = '{{#foo}}{{thing1}} and {{thing2}} and {{outer_thing}}{{/foo}}{{^foo}}Not foo!{{/foo}}' - self.assertEquals(view.render(), "one and foo and two") + + actual = renderer.render(view) + self.assertString(actual, u"one and foo and two") def test_looping_and_negation_context(self): template = '{{#item}}{{header}}: {{name}} {{/item}}{{^item}} Shouldnt see me{{/item}}' |