[Zope-Checkins] CVS: Zope/lib/python/ZPublisher/tests - testHTTPRangeSupport.py:1.2.22.1

Martijn Pieters mj@zope.com
Tue, 4 Dec 2001 17:41:44 -0500


Update of /cvs-repository/Zope/lib/python/ZPublisher/tests
In directory cvs.zope.org:/tmp/cvs-serv29434/lib/python/ZPublisher/tests

Modified Files:
      Tag: Zope-2_4-branch
	testHTTPRangeSupport.py 
Log Message:
Fix HTTP Range support; don't concatenate adjacent byte ranges, as this breaks
Acrobat PDF downloading.


=== Zope/lib/python/ZPublisher/tests/testHTTPRangeSupport.py 1.2 => 1.2.22.1 ===
     def testAdjacentInOrder(self):
         self.expectSets([(1, 10), (10, 20), (25, 50)], 5000,
-            [(1, 20), (25, 50)])
+            [(1, 10), (10, 20), (25, 50)])
 
     def testAdjacentOutOfOrder(self):
-        self.expectSets([(-5, None), (40, 45)], 50, [(40, 50)])
+        self.expectSets([(-5, None), (40, 45)], 50, [(40, 45), (45, 50)])
 
     def testOverLapAndOverflow(self):
         # Note that one endpoint lies beyond the end.