[Checkins] SVN: five.pt/trunk/src/five/pt/tests/test_persistenttemplate.py failing test for tal:on-error processing
Leonardo Rochael Almeida
leorochael at gmail.com
Mon Sep 19 11:59:14 EST 2011
Log message for revision 122846:
failing test for tal:on-error processing
Changed:
U five.pt/trunk/src/five/pt/tests/test_persistenttemplate.py
-=-
Modified: five.pt/trunk/src/five/pt/tests/test_persistenttemplate.py
===================================================================
--- five.pt/trunk/src/five/pt/tests/test_persistenttemplate.py 2011-09-19 14:27:04 UTC (rev 122845)
+++ five.pt/trunk/src/five/pt/tests/test_persistenttemplate.py 2011-09-19 16:59:13 UTC (rev 122846)
@@ -68,6 +68,12 @@
</tal:block>
""".strip()
+tal_onerror_structure_source = """
+<tal:block tal:on-error="structure python: '<i>error!</i>'">
+ <i tal:content="python: 1/0">
+</tal:block>
+"""
+
python_path_source = """
<form tal:attributes="method python:path('context/method')" />
""".strip()
@@ -209,3 +215,7 @@
# https://bugs.launchpad.net/chameleon.zpt/+bug/848200
template = self._makeOne('foo', lp_848200_source)
self.assertEqual(template().strip(), u'<tag attrib="true" />')
+
+ def test_onerror_structure(self):
+ template = self._makeOne('foo', tal_onerror_structure_source)
+ self.assertEqual(template().strip(), u'<i>error!</i>')
More information about the checkins
mailing list