Commit 4f5997e3 by Chris Wanstrath

failing unescaped test

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