[Zope-Checkins] CVS: Zope/lib/python/ZTUtils/tests -
testBatch.py:1.7.66.2
Andreas Jung
andreas at andreas-jung.com
Fri May 28 11:00:32 EDT 2004
Update of /cvs-repository/Zope/lib/python/ZTUtils/tests
In directory cvs.zope.org:/tmp/cvs-serv18702/lib/python/ZTUtils/tests
Modified Files:
Tag: Zope-2_7-branch
testBatch.py
Log Message:
improved test for orphan testing
=== Zope/lib/python/ZTUtils/tests/testBatch.py 1.7.66.1 => 1.7.66.2 ===
--- Zope/lib/python/ZTUtils/tests/testBatch.py:1.7.66.1 Fri May 28 09:39:06 2004
+++ Zope/lib/python/ZTUtils/tests/testBatch.py Fri May 28 11:00:31 2004
@@ -44,9 +44,9 @@
def testLengthEqualsSizePlusOrphans(self):
'''Test limit case where batch length is equal to size + orphans'''
- for bsize in (12, 14):
+ for bsize, length in ((12,11), (13,12), (14,13), (15,10)):
b = Batch(range(bsize), size=10, start=1, end=0, orphan=3, overlap=0)
- assert b.length = b.sequence_length
+ assert length == b.length
def test_suite():
return makeSuite(BatchTests)
More information about the Zope-Checkins
mailing list