[CMF-checkins] CVS: Products/CMFCore/tests - test_FSFile.py:1.12
test_FSImage.py:1.14
Chris McDonough
chrism at plope.com
Thu Jul 7 12:46:55 EDT 2005
Update of /cvs-repository/Products/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv14403/tests
Modified Files:
test_FSFile.py test_FSImage.py
Log Message:
Fix #333, FSFile doesn't update caching headers for 304 responses.
=== Products/CMFCore/tests/test_FSFile.py 1.11 => 1.12 ===
--- Products/CMFCore/tests/test_FSFile.py:1.11 Wed Jun 15 10:17:38 2005
+++ Products/CMFCore/tests/test_FSFile.py Thu Jul 7 12:46:50 2005
@@ -117,6 +117,9 @@
data = file.index_html( self.REQUEST, self.RESPONSE )
self.assertEqual( data, '' )
+ # test that we properly hack around apache bug noted in code
+ self.assertEqual( self.RESPONSE.getHeader('Content-Length'.lower()),
+ str(len(ref)) )
self.assertEqual( self.RESPONSE.getStatus(), 304 )
def test_index_html_without_304( self ):
=== Products/CMFCore/tests/test_FSImage.py 1.13 => 1.14 ===
--- Products/CMFCore/tests/test_FSImage.py:1.13 Wed Jun 15 10:17:38 2005
+++ Products/CMFCore/tests/test_FSImage.py Thu Jul 7 12:46:50 2005
@@ -105,6 +105,9 @@
data = image.index_html( self.REQUEST, self.RESPONSE )
self.assertEqual( data, '' )
+ # test that we properly hack around apache bug noted in code
+ self.assertEqual( self.RESPONSE.getHeader('Content-Length'.lower()),
+ str(len(ref)) )
self.assertEqual( self.RESPONSE.getStatus(), 304 )
def test_index_html_without_304( self ):
More information about the CMF-checkins
mailing list