Commit dedcfbd0 by Rhett Garber

Testing for section/partial bug

parent 1e72b7a4
......@@ -12,6 +12,7 @@ from examples.delimiters import Delimiters
from examples.unicode_output import UnicodeOutput
from examples.unicode_input import UnicodeInput
from examples.nested_context import NestedContext
from examples.partial_section import PartialSection
class TestView(unittest.TestCase):
def test_comments(self):
......@@ -55,7 +56,8 @@ Again, Welcome!""")
self.assertEquals(view.render(), """Welcome
-------
Again, Welcome!
## Again, Welcome! ##
""")
......@@ -68,6 +70,11 @@ Again, Welcome!
* Then, surprisingly, it worked the third time.
""")
def test_partial_sections(self):
view = PartialSection()
self.assertEquals(view.render(), """Welcome, we're loading partials
This is item aThis is item b""")
def test_nested_context(self):
self.assertEquals(NestedContext().render(), "one and foo and two")
......
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