[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 15:24:44 EST 2006


Log message for revision 71577:
  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 20:13:38 UTC (rev 71576)
+++ Zope/branches/ajung-zpt-encoding-fixes/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py	2006-12-17 20:24:43 UTC (rev 71577)
@@ -68,6 +68,7 @@
         result = zpt.pt_render()
         # use startswith() because the renderer appends a trailing \n
         self.assertEqual(result.startswith(ascii_str), True)
+        self.assertEqual(zpt.output_encoding, 'iso-8859-15')
 
     def testPT_RenderWithISO885915(self):
         manage_addPageTemplate(self.app, 'test', text=iso885915_str, encoding='iso-8859-15')
@@ -75,6 +76,7 @@
         result = zpt.pt_render()
         # use startswith() because the renderer appends a trailing \n
         self.assertEqual(result.startswith(iso885915_str), True)
+        self.assertEqual(zpt.output_encoding, 'iso-8859-15')
 
     def testPT_RenderWithUTF8(self):
         manage_addPageTemplate(self.app, 'test', text=utf8_str, encoding='utf-8')
@@ -82,6 +84,7 @@
         result = zpt.pt_render()
         # use startswith() because the renderer appends a trailing \n
         self.assertEqual(result.startswith(utf8_str), True)
+        self.assertEqual(zpt.output_encoding, 'iso-8859-15')
 
     def _createZPT(self):
         manage_addPageTemplate(self.app, 'test', text=utf8_str, encoding='utf-8')



More information about the Zope-Checkins mailing list