diff options
author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-04-01 20:23:22 -0700 |
---|---|---|
committer | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-04-01 20:23:22 -0700 |
commit | 8fdbaf27a65d63332841d8672ac9a8c6a0300a45 (patch) | |
tree | 2eb35b88341275c0dadc035d7733d4f905c0f1b3 /tests | |
parent | 08c4032b6be9847d24a63bc04293f6d24bb451c5 (diff) | |
download | pystache-8fdbaf27a65d63332841d8672ac9a8c6a0300a45.tar.gz |
Removed View dependency from Unescaped example.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_examples.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_examples.py b/tests/test_examples.py index 5b5af01..36b8f7e 100644 --- a/tests/test_examples.py +++ b/tests/test_examples.py @@ -40,7 +40,9 @@ class TestView(unittest.TestCase, AssertStringMixin): self._assert(Escaped(), u"<h1>Bear > Shark</h1>") def test_literal(self): - self.assertEquals(Unescaped().render(), "<h1>Bear > Shark</h1>") + renderer = Renderer() + actual = renderer.render(Unescaped()) + self.assertEquals(actual, "<h1>Bear > Shark</h1>") def test_template_partial(self): renderer = Renderer(search_dirs=EXAMPLES_DIR) |