Commit 24bdeb2d by Chris Wanstrath

failing template partial test

parent 4f5997e3
Again, {{title}}!
\ No newline at end of file
<h1>{{title}}</h1>
{{>inner_partial}}
\ No newline at end of file
import pystache
class TemplatePartial(pystache.View):
template_path = 'examples'
def title(self):
return "Welcome"
def title_bars(self):
return '-' * title.size
......@@ -5,6 +5,7 @@ from examples.comments import Comments
from examples.double_section import DoubleSection
from examples.escaped import Escaped
from examples.unescaped import Unescaped
from examples.template_partial import TemplatePartial
class TestView(unittest.TestCase):
def test_comments(self):
......@@ -22,3 +23,5 @@ class TestView(unittest.TestCase):
def test_unescaped(self):
self.assertEquals(Unescaped().render(), "<h1>Bear > Shark</h1>")
def test_template_partial(self):
self.assertEquals(TemplatePartial().render(), 'blah')
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