Commit d58a7d95 by Chris Wanstrath

failing escaped test

parent b06c64ae
<h1>{{title}}</h1>
\ No newline at end of file
import pystache
class Escaped(pystache.View):
template_path = 'examples'
def title(self):
return "Bear > Shark"
......@@ -3,6 +3,7 @@ import pystache
from examples.comments import Comments
from examples.double_section import DoubleSection
from examples.escaped import Escaped
class TestView(unittest.TestCase):
def test_comments(self):
......@@ -13,3 +14,6 @@ class TestView(unittest.TestCase):
self.assertEquals(DoubleSection().render(), """* first
* second
* third""")
def test_escaped(self):
self.assertEquals(Escaped().render(), "<h1>Bear &gt; Shark</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