summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-04-01 20:23:22 -0700
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-04-01 20:23:22 -0700
commit8fdbaf27a65d63332841d8672ac9a8c6a0300a45 (patch)
tree2eb35b88341275c0dadc035d7733d4f905c0f1b3 /tests
parent08c4032b6be9847d24a63bc04293f6d24bb451c5 (diff)
downloadpystache-8fdbaf27a65d63332841d8672ac9a8c6a0300a45.tar.gz
Removed View dependency from Unescaped example.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_examples.py4
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 &gt; 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)