Commit c215b07b by Chris Wanstrath

partial extension test

parent 40b904a3
## Again, {{title}}! ##
{{title}}
{{title_bars}}
{{>inner_partial}}
......@@ -26,3 +26,12 @@ class TestView(unittest.TestCase):
def test_template_partial(self):
self.assertEquals(TemplatePartial().render(), """<h1>Welcome</h1>
Again, Welcome!""")
def test_template_partial_extension(self):
view = TemplatePartial()
view.template_extension = 'txt'
self.assertEquals(view.render(), """Welcome
-------
Again, Welcome!
""")
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