[Zope-Checkins]
SVN: Zope/trunk/lib/python/ZTUtils/tests/testBatch.py
improved test for orphan testing
Andreas Jung
andreas at andreas-jung.com
Fri May 28 11:01:34 EDT 2004
Log message for revision 25085:
improved test for orphan testing
-=-
Modified: Zope/trunk/lib/python/ZTUtils/tests/testBatch.py
===================================================================
--- Zope/trunk/lib/python/ZTUtils/tests/testBatch.py 2004-05-28 14:38:07 UTC (rev 25084)
+++ Zope/trunk/lib/python/ZTUtils/tests/testBatch.py 2004-05-28 15:01:34 UTC (rev 25085)
@@ -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