[Checkins] SVN: five.pt/trunk/src/five/pt/tests/test_persistenttemplate.py failing test for malthe/chameleon github issue 60
Leonardo Rochael Almeida
leorochael at gmail.com
Tue Sep 20 06:58:24 EST 2011
Log message for revision 122852:
failing test for malthe/chameleon github issue 60
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-20 07:25:56 UTC (rev 122851)
+++ five.pt/trunk/src/five/pt/tests/test_persistenttemplate.py 2011-09-20 11:58:23 UTC (rev 122852)
@@ -72,8 +72,12 @@
<tal:block tal:on-error="structure python: '<i>error!</i>'">
<i tal:content="python: 1/0">
</tal:block>
-"""
+""".strip()
+python_nbsp_source = """
+<p tal:content="structure python: '&nbsp;'" />
+""".strip()
+
python_path_source = """
<form tal:attributes="method python:path('context/method')" />
""".strip()
@@ -219,3 +223,7 @@
def test_onerror_structure(self):
template = self._makeOne('foo', tal_onerror_structure_source)
self.assertEqual(template().strip(), u'<i>error!</i>')
+
+ def test_python_nbsp(self):
+ template = self._makeOne('foo', python_nbsp_source)
+ self.assertEqual(template().strip(), u'<p> </p>')
More information about the checkins
mailing list