[Zope-Checkins]
SVN: Zope/branches/ajung-zpt-encoding-fixes/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py
more tests
Andreas Jung
andreas at andreas-jung.com
Sun Dec 17 14:24:23 EST 2006
Log message for revision 71572:
more tests
Changed:
U Zope/branches/ajung-zpt-encoding-fixes/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py
-=-
Modified: Zope/branches/ajung-zpt-encoding-fixes/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py
===================================================================
--- Zope/branches/ajung-zpt-encoding-fixes/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py 2006-12-17 19:22:55 UTC (rev 71571)
+++ Zope/branches/ajung-zpt-encoding-fixes/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py 2006-12-17 19:24:23 UTC (rev 71572)
@@ -47,17 +47,14 @@
html_template_wo_header = '''
<html>
- <head>
- <META http-equiv="content-type" content="text/html; charset=%s">
- </hed>
<body>
test üöäÜÖÄß
</body>
</html>
'''
-html_iso_8859_15_wo_header = html_template_wo_header % 'iso-8859-15'
-html_utf8_wo_header = unicode(html_template_wo_header, 'iso-8859-15').encode('utf-8') % 'utf-8'
+html_iso_8859_15_wo_header = html_template_wo_header
+html_utf8_wo_header = unicode(html_template_wo_header, 'iso-8859-15').encode('utf-8')
installProduct('PageTemplates')
@@ -107,6 +104,13 @@
def testPutHTMLUTF8_WithCharsetInfo(self):
self.assertEqual(self._put(html_utf8_w_header), 'utf-8')
+ def testPutHTMLIso8859_15WithoutCharsetInfo(self):
+ self.assertEqual(self._put(html_iso_8859_15_wo_header), 'iso-8859-15')
+
+ def testPutHTMLUTF8_WithoutCharsetInfo(self):
+ import pdb; pdb.set_trace()
+ self.assertEqual(self._put(html_utf8_wo_header), 'iso-8859-15')
+
def testPutXMLIso8859_15(self):
""" XML: use always UTF-8 als output encoding """
self.assertEqual(self._put(xml_iso_8859_15), 'utf-8')
More information about the Zope-Checkins
mailing list