[ZPT] CVS: Releases/Zope/lib/python/ZTUtils/tests - testBatch.py:1.4.30.2
Evan Simpson
evan@zope.com
Fri, 15 Mar 2002 16:50:55 -0500
Update of /cvs-repository/Releases/Zope/lib/python/ZTUtils/tests
In directory cvs.zope.org:/tmp/cvs-serv23086/tests
Modified Files:
Tag: Zope-2_5-branch
testBatch.py
Log Message:
Merge changes from trunk
=== Releases/Zope/lib/python/ZTUtils/tests/testBatch.py 1.4.30.1 => 1.4.30.2 ===
assert b.start == 1, b.start
assert len(b) == b.end == bsize
- assert b.total == len(seq)
+ assert b.sequence_length == len(seq)
for i in seq:
assert b[i] == i, (b[i], i)
neg = -1 - i
@@ -36,10 +36,10 @@
assert b.next is None
assert len(b) == bsize
assert b[bsize - 1] == bsize - 1
- assert b.total == bsize
+ assert b.sequence_length == bsize
b = Batch(range(8), 5)
assert len(b) == 5
- assert b.total == 8
+ assert b.sequence_length == 8
assert len(b.next) == 3
def test_suite():