summaryrefslogtreecommitdiff
path: root/tests/test_examples.py
diff options
context:
space:
mode:
authorCarl Whittaker <carl.whittaker@hogarthww.com>2011-01-13 19:36:33 +0000
committerCarl Whittaker <carl.whittaker@hogarthww.com>2011-01-13 19:36:33 +0000
commitbc5d0e2700506d1fe7fa87a0e345f84ea42bc8aa (patch)
tree85816fc610de31a232b004d7cbbe568600c5482c /tests/test_examples.py
parent69406c082340f4017bb86e066ce6ae708a5ac8f0 (diff)
downloadpystache-bc5d0e2700506d1fe7fa87a0e345f84ea42bc8aa.tar.gz
Fixed accessing mixed nested context objects. BOOM!
Diffstat (limited to 'tests/test_examples.py')
-rw-r--r--tests/test_examples.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_examples.py b/tests/test_examples.py
index 8b3624b..0b405f1 100644
--- a/tests/test_examples.py
+++ b/tests/test_examples.py
@@ -76,5 +76,11 @@ Again, Welcome!
view.template = '{{#herp}}{{#derp}}{{nested_context_in_view}}{{/derp}}{{/herp}}'
self.assertEquals(view.render(), 'it works!')
+ def test_partial_in_partial_has_access_to_grand_parent_context(self):
+ view = TemplatePartial()
+ view.context = {'prop': 'derp'}
+ view.template = '''{{>partial_in_partial}}'''
+ self.assertEquals(view.render(), 'Hi derp!')
+
if __name__ == '__main__':
unittest.main()