[Zope3-checkins] CVS: ZODB4/src/zodb/storage/tests - iterator.py:1.3
Barry Warsaw
barry@wooz.org
Wed, 22 Jan 2003 15:10:08 -0500
Update of /cvs-repository/ZODB4/src/zodb/storage/tests
In directory cvs.zope.org:/tmp/cvs-serv17042
Modified Files:
iterator.py
Log Message:
A bit of code cleanup
=== ZODB4/src/zodb/storage/tests/iterator.py 1.2 => 1.3 ===
--- ZODB4/src/zodb/storage/tests/iterator.py:1.2 Wed Dec 25 09:12:20 2002
+++ ZODB4/src/zodb/storage/tests/iterator.py Wed Jan 22 15:10:04 2003
@@ -1,6 +1,6 @@
##############################################################################
#
-# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
+# Copyright (c) 2001 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
@@ -17,14 +17,14 @@
all these tests.
"""
-from zodb.storage.tests.minpo import MinPO
-from zodb.storage.tests.base import zodb_unpickle
from zodb.utils import u64, p64
from zodb.ztransaction import Transaction
+from zodb.storage.tests.minpo import MinPO
+from zodb.storage.tests.base import zodb_unpickle
+
class IteratorCompare:
-
def iter_verify(self, txniter, revids, val0):
eq = self.assertEqual
oid = self._oid
@@ -36,11 +36,11 @@
eq(rec.serial, revid)
eq(rec.version, '')
eq(zodb_unpickle(rec.data), MinPO(val))
- val = val + 1
+ val += 1
eq(val, val0 + len(revids))
-class IteratorStorage(IteratorCompare):
+class IteratorStorage(IteratorCompare):
def checkSimpleIteration(self):
# Store a bunch of revisions of a single object
self._oid = oid = self._storage.new_oid()