[CMF-checkins] CVS: CMF/CMFCore/tests - test_FSFile.py:1.3 test_FSImage.py:1.6

Florent Guillaume fg@nuxeo.com
Mon, 23 Dec 2002 15:15:20 -0500


Update of /cvs-repository/CMF/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv32120/CMFCore/tests

Modified Files:
	test_FSFile.py test_FSImage.py 
Log Message:
Fixed tests that assumed getHeader returned whatever was set, when it now
always returns a string.


=== CMF/CMFCore/tests/test_FSFile.py 1.2 => 1.3 ===
--- CMF/CMFCore/tests/test_FSFile.py:1.2	Thu Sep 12 11:34:03 2002
+++ CMF/CMFCore/tests/test_FSFile.py	Mon Dec 23 15:15:20 2002
@@ -65,7 +65,7 @@
         #   ICK!  'HTTPResponse.getHeader' doesn't case-flatten the key!
         #
         self.assertEqual( self.RESPONSE.getHeader( 'Content-Length'.lower() )
-                        , len( ref ) )
+                        , str(len(ref)) )
         self.assertEqual( self.RESPONSE.getHeader( 'Content-Type'.lower() )
                         , 'application/octet-stream' )
         self.assertEqual( self.RESPONSE.getHeader( 'Last-Modified'.lower() )


=== CMF/CMFCore/tests/test_FSImage.py 1.5 => 1.6 ===
--- CMF/CMFCore/tests/test_FSImage.py:1.5	Mon Aug 19 13:29:32 2002
+++ CMF/CMFCore/tests/test_FSImage.py	Mon Dec 23 15:15:20 2002
@@ -65,7 +65,7 @@
         #   ICK!  'HTTPResponse.getHeader' doesn't case-flatten the key!
         #
         self.assertEqual( self.RESPONSE.getHeader( 'Content-Length'.lower() )
-                        , len( ref ) )
+                        , str(len(ref)) )
         self.assertEqual( self.RESPONSE.getHeader( 'Content-Type'.lower() )
                         , 'image/gif' )
         self.assertEqual( self.RESPONSE.getHeader( 'Last-Modified'.lower() )