Commit 17d70ba6 by Chris Jerdonek

Delimiters test no longer depends on pystache.View.

parent 1055dd9b
import pystache
class Delimiters(pystache.View):
template_path = 'examples'
class Delimiters(object):
def first(self):
return "It worked the first time."
......
......@@ -51,7 +51,10 @@ Again, Welcome!""")
## Again, Welcome! ##""")
def test_delimiters(self):
assert_strings(self, Delimiters().render(), """* It worked the first time.
renderer = Renderer()
expected = renderer.render(Delimiters())
assert_strings(self, expected, """\
* It worked the first time.
* And it worked the second time.
* Then, surprisingly, it worked the third time.
""")
......
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