mirror of
https://github.com/kennethreitz-archive/pystache.git
synced 2026-06-05 23:40:16 +00:00
16 lines
390 B
Python
16 lines
390 B
Python
import unittest
|
|
import pystache
|
|
|
|
from examples.comments import Comments
|
|
from examples.double_section import DoubleSection
|
|
|
|
class TestView(unittest.TestCase):
|
|
def test_comments(self):
|
|
self.assertEquals(Comments().render(), """<h1>A Comedy of Errors</h1>
|
|
""")
|
|
|
|
def test_double_section(self):
|
|
self.assertEquals(DoubleSection().render(), """* first
|
|
* second
|
|
* third""")
|