[Zodb-checkins] CVS: ZODB3/ZODB/tests - VersionStorage.py:1.25.2.10

Jeremy Hylton jeremy at zope.com
Fri Dec 19 16:43:08 EST 2003


Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv13483/ZODB/tests

Modified Files:
      Tag: ZODB3-mvcc-2-branch
	VersionStorage.py 
Log Message:
Add test to guarantee that loadSerial returns non-version data.


=== ZODB3/ZODB/tests/VersionStorage.py 1.25.2.9 => 1.25.2.10 ===
--- ZODB3/ZODB/tests/VersionStorage.py:1.25.2.9	Tue Dec  2 02:10:32 2003
+++ ZODB3/ZODB/tests/VersionStorage.py	Fri Dec 19 16:43:06 2003
@@ -87,6 +87,11 @@
         data, tid, ver = self._storage.loadEx(oid, "other version")
         eq(zodb_unpickle(data), MinPO(12))
         eq(tid, revid2)
+        # loadSerial returns non-version data
+        data = self._storage.loadSerial(oid, revid)
+        eq(zodb_unpickle(data), MinPO(12))
+        data = self._storage.loadSerial(oid, revid2)
+        eq(zodb_unpickle(data), MinPO(12))
 
     def checkVersionedLoadErrors(self):
         oid = self._storage.new_oid()




More information about the Zodb-checkins mailing list