Commit d4f27953 by Chris Wanstrath

Add `examples` test file, start with a comments test

parent 1ac8a33d
<h1>{{title}}{{! just something interesting... #or not... }}</h1>
import pystache
class Comments(pystache.View):
template_path = 'examples'
def title(self):
return "A Comedy of Errors"
import unittest
import pystache
from examples.comments import Comments
class TestView(unittest.TestCase):
def test_comments(self):
self.assertEquals(Comments().render(), """<h1>A Comedy of Errors</h1>
""")
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