[Checkins] SVN: Products.CMFCore/branches/2.2/Products/CMFCore/ Updated test to work with zope.contenttype >= 3.4.3.

Hanno Schlichting hannosch at hannosch.eu
Sun Jun 6 08:54:46 EDT 2010


Log message for revision 113178:
  Updated test to work with zope.contenttype >= 3.4.3.
  

Changed:
  U   Products.CMFCore/branches/2.2/Products/CMFCore/CHANGES.txt
  U   Products.CMFCore/branches/2.2/Products/CMFCore/tests/test_FSFile.py

-=-
Modified: Products.CMFCore/branches/2.2/Products/CMFCore/CHANGES.txt
===================================================================
--- Products.CMFCore/branches/2.2/Products/CMFCore/CHANGES.txt	2010-06-06 10:17:13 UTC (rev 113177)
+++ Products.CMFCore/branches/2.2/Products/CMFCore/CHANGES.txt	2010-06-06 12:54:46 UTC (rev 113178)
@@ -4,7 +4,9 @@
 2.2.2 (unreleased)
 ------------------
 
+- Updated test to work with zope.contenttype >= 3.4.3.
 
+
 2.2.1 (2010-04-07)
 ------------------
 

Modified: Products.CMFCore/branches/2.2/Products/CMFCore/tests/test_FSFile.py
===================================================================
--- Products.CMFCore/branches/2.2/Products/CMFCore/tests/test_FSFile.py	2010-06-06 10:17:13 UTC (rev 113177)
+++ Products.CMFCore/branches/2.2/Products/CMFCore/tests/test_FSFile.py	2010-06-06 12:54:46 UTC (rev 113178)
@@ -229,9 +229,9 @@
         file_name = 'testUtf8.js'
         file = self._makeOne(file_name, file_name)
         file = file.__of__(self.root)
-        data = file.index_html(self.REQUEST, self.RESPONSE)
-        self.assertEqual(self.RESPONSE.getHeader('content-type'),
-                         'application/x-javascript; charset=utf-8')
+        file.index_html(self.REQUEST, self.RESPONSE)
+        mime = self.RESPONSE.getHeader('content-type')
+        self.failUnless(mime.endswith('; charset=utf-8'))
 
     def test_unnecessary_invalidation_avoidance(self):
         # See https://bugs.launchpad.net/zope-cmf/+bug/325246



More information about the checkins mailing list