[ZPT] CVS: Releases/Zope/lib/python/ZTUtils/tests - testBatch.py:1.6

Evan Simpson evan@zope.com
Fri, 15 Mar 2002 16:47:39 -0500


Update of /cvs-repository/Releases/Zope/lib/python/ZTUtils/tests
In directory cvs.zope.org:/tmp/cvs-serv21926/tests

Modified Files:
	testBatch.py 
Log Message:
Rename 'total' to 'sequence_length' and make it lazy.


=== Releases/Zope/lib/python/ZTUtils/tests/testBatch.py 1.5 => 1.6 ===
             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():