[Checkins] SVN: five.pt/trunk/src/five/pt/tests/test_persistenttemplate.py Add failing test for 848200
Leonardo Rochael Almeida
leorochael at gmail.com
Mon Sep 12 14:35:12 EST 2011
Log message for revision 122781:
Add failing test for 848200
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-12 16:23:09 UTC (rev 122780)
+++ five.pt/trunk/src/five/pt/tests/test_persistenttemplate.py 2011-09-12 19:35:11 UTC (rev 122781)
@@ -59,6 +59,15 @@
</metal:use>
""".strip()
+lp_848200_source = """
+<tal:block>
+ <tag tal:condition="False"
+ tal:attributes="attrib string:false" />
+ <tag tal:condition="True"
+ tal:attributes="attrib string:true" />
+</tal:block>
+""".strip()
+
python_path_source = """
<form tal:attributes="method python:path('context/method')" />
""".strip()
@@ -195,3 +204,8 @@
error_log = SiteErrorLog().__of__(self.folder)
# this should render without errors
error_log.manage_main()
+
+ def test_lp_848200(self):
+ # https://bugs.launchpad.net/chameleon.zpt/+bug/848200
+ template = self._makeOne('foo', lp_848200_source)
+ self.assertEqual(template().strip(), u'<tag attrib="true" />')
More information about the checkins
mailing list