[CMF-checkins] CVS: Products/CMFCore/tests - test_FSPageTemplate.py:1.14.14.1

Jens Vagelpohl jens at dataflake.org
Fri Sep 3 14:01:15 EDT 2004


Update of /cvs-repository/Products/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv827/CMFCore/tests

Modified Files:
      Tag: CMF-1_5-branch
	test_FSPageTemplate.py 
Log Message:
- FSPageTemplate: Refine the XML content type detection so that
  addtional data such as encoding is preserved
  (http://www.zope.org/Collectors/CMF/228)


=== Products/CMFCore/tests/test_FSPageTemplate.py 1.14 => 1.14.14.1 ===
--- Products/CMFCore/tests/test_FSPageTemplate.py:1.14	Mon Apr 26 08:14:17 2004
+++ Products/CMFCore/tests/test_FSPageTemplate.py	Fri Sep  3 14:01:10 2004
@@ -41,8 +41,8 @@
         script = self._makeOne( 'testXMLPT', 'testXMLPT.pt' )
         script = script.__of__(self.root)
         script()
-        self.assertEqual(script.content_type, 'text/xml')
-        self.assertEqual(self.RESPONSE.getHeader('content-type'), 'text/xml')
+        self.assertEqual(script.content_type, 'text/xml; charset=utf-8')
+        self.assertEqual(self.RESPONSE.getHeader('content-type'), 'text/xml; charset=utf-8')
         # purge RESPONSE Content-Type header for new test
         del self.RESPONSE.headers['content-type']
         script = self._makeOne( 'testPT', 'testPT.pt' )



More information about the CMF-checkins mailing list