[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/tests/RevisionStorage.py
Changed some tests that used the old loadEx method to use
load, since
Jim Fulton
jim at zope.com
Thu Apr 26 19:20:17 EDT 2007
Log message for revision 74839:
Changed some tests that used the old loadEx method to use load, since
loadEx isn't a storage method.
Changed:
U ZODB/trunk/src/ZODB/tests/RevisionStorage.py
-=-
Modified: ZODB/trunk/src/ZODB/tests/RevisionStorage.py
===================================================================
--- ZODB/trunk/src/ZODB/tests/RevisionStorage.py 2007-04-26 23:20:15 UTC (rev 74838)
+++ ZODB/trunk/src/ZODB/tests/RevisionStorage.py 2007-04-26 23:20:17 UTC (rev 74839)
@@ -52,7 +52,7 @@
snooze()
snooze()
revid = self._dostore(oid, revid, data=MinPO(i))
- revs.append(self._storage.loadEx(oid, ""))
+ revs.append(self._storage.load(oid, ""))
prev = u64(revs[0][1])
for i in range(1, 10):
@@ -123,10 +123,10 @@
# Always undo the most recent txn, so the value will
# alternate between 3 and 4.
self._undo(tid, [oid], note="undo %d" % i)
- revs.append(self._storage.loadEx(oid, ""))
+ revs.append(self._storage.load(oid, ""))
prev_tid = None
- for i, (data, tid, ver) in enumerate(revs):
+ for i, (data, tid) in enumerate(revs):
t = self._storage.loadBefore(oid, p64(u64(tid) + 1))
self.assertEqual(data, t[0])
self.assertEqual(tid, t[1])
More information about the Zodb-checkins
mailing list