[Zodb-checkins] CVS: ZODB3/ZODB/tests - RevisionStorage.py:1.4.2.3
Jeremy Hylton
cvs-admin at zope.org
Tue Nov 18 12:30:23 EST 2003
Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv7013/ZODB/tests
Modified Files:
Tag: ZODB3-mvcc-2-branch
RevisionStorage.py
Log Message:
Tests that txn ids are monotonically increasing.
=== ZODB3/ZODB/tests/RevisionStorage.py 1.4.2.2 => 1.4.2.3 ===
--- ZODB3/ZODB/tests/RevisionStorage.py:1.4.2.2 Wed Nov 12 15:26:41 2003
+++ ZODB3/ZODB/tests/RevisionStorage.py Tue Nov 18 12:30:09 2003
@@ -113,15 +113,18 @@
self._undo(tid, [oid])
revs.append(self._storage.loadEx(oid, ""))
+ prev_tid = None
for i, (data, serial, tid) in enumerate(revs):
t = self._storage.loadNonCurrent(oid, p64(u64(tid) + 1))
self.assertEqual(data, t[0])
self.assertEqual(serial, t[1])
self.assertEqual(tid, t[2])
+ if prev_tid:
+ self.assert_(prev_tid < t[2])
+ prev_tid = t[2]
if i < 3:
self.assertEqual(revs[i+1][2], t[3])
else:
self.assertEqual(None, t[3])
-
# XXX There are other edge cases to handle, including pack.
More information about the Zodb-checkins
mailing list