[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/tests/test_edgecases.py More torture

Wichert Akkerman wichert at wiggy.net
Mon Aug 18 18:44:20 EDT 2008


Log message for revision 89986:
  More torture

Changed:
  U   z3c.pt/trunk/src/z3c/pt/tests/test_edgecases.py

-=-
Modified: z3c.pt/trunk/src/z3c/pt/tests/test_edgecases.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/tests/test_edgecases.py	2008-08-18 22:42:37 UTC (rev 89985)
+++ z3c.pt/trunk/src/z3c/pt/tests/test_edgecases.py	2008-08-18 22:44:20 UTC (rev 89986)
@@ -71,9 +71,10 @@
         body = unicode("""\
         <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-        <html xmlns="http://www.w3.org/1999/xhtml">
+        <html xmlns="http://www.w3.org/1999/xhtml"
+        xmlns:py="http://genshi.edgewall.org">
         <title>\xc2\xa9n</title>
-        <div id="${foo}"/>
+        <div id="${foo}" py:attrs="dict(label=foo)"/>
         </html>
         """, 'utf-8')
         expected = """\
@@ -81,7 +82,7 @@
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
         <html>
         <title>\xc2\xa9</title>
-        <div id="${foo}"/>
+        <div id="\xc2\xa9" label="\xc2\xa9"/>
         </html>"""
         t = PageTemplate(body, parser=GenshiParser())
         c = unicode('\xc2\xa9', 'utf-8')



More information about the Checkins mailing list