diff options
author | Chris Wanstrath <chris@ozmm.org> | 2009-11-12 19:30:03 -0800 |
---|---|---|
committer | Chris Wanstrath <chris@ozmm.org> | 2009-11-12 19:30:03 -0800 |
commit | 4f5997e3d47d5eea11b5bcd4358e115607f5308a (patch) | |
tree | af1997c938a764a9e32f223be62bf774f982e823 | |
parent | d58a7d952b84a479d037ab50f237bfabb734f8d2 (diff) | |
download | pystache-4f5997e3d47d5eea11b5bcd4358e115607f5308a.tar.gz |
failing unescaped test
-rw-r--r-- | examples/unescaped.mustache | 1 | ||||
-rw-r--r-- | examples/unescaped.py | 7 | ||||
-rw-r--r-- | tests/test_examples.py | 5 |
3 files changed, 13 insertions, 0 deletions
diff --git a/examples/unescaped.mustache b/examples/unescaped.mustache new file mode 100644 index 0000000..9982708 --- /dev/null +++ b/examples/unescaped.mustache @@ -0,0 +1 @@ +<h1>{{{title}}}</h1>
\ No newline at end of file diff --git a/examples/unescaped.py b/examples/unescaped.py new file mode 100644 index 0000000..a040dcb --- /dev/null +++ b/examples/unescaped.py @@ -0,0 +1,7 @@ +import pystache + +class Unescaped(pystache.View): + template_path = 'examples' + + def title(self): + return "Bear > Shark" diff --git a/tests/test_examples.py b/tests/test_examples.py index ef523d2..ae7d223 100644 --- a/tests/test_examples.py +++ b/tests/test_examples.py @@ -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 > Shark</h1>") + + def test_unescaped(self): + self.assertEquals(Unescaped().render(), "<h1>Bear > Shark</h1>") + |