[Zodb-checkins] CVS: ZODB3/ZODB/tests - IteratorStorage.py:1.17.2.2

Jeremy Hylton cvs-admin at zope.org
Tue Nov 11 16:43:30 EST 2003


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

Modified Files:
      Tag: ZODB3-mvcc-2-branch
	IteratorStorage.py 
Log Message:
Test that we actually get back the data put it.


=== ZODB3/ZODB/tests/IteratorStorage.py 1.17.2.1 => 1.17.2.2 ===
--- ZODB3/ZODB/tests/IteratorStorage.py:1.17.2.1	Wed Nov  5 23:33:44 2003
+++ ZODB3/ZODB/tests/IteratorStorage.py	Tue Nov 11 16:43:29 2003
@@ -149,8 +149,9 @@
 
     def checkLoadEx(self):
         oid = self._storage.new_oid()
-        self._dostore(oid)
+        self._dostore(oid, data=42)
         data, serial, tid = self._storage.loadEx(oid, "")
+        self.assertEqual(zodb_unpickle(data), MinPO(42))
         # In most storages, serial == tid, but that's not a required
         # part of the API.  The API goes out of its way to avoid
         # exposing the transaction.  The best we can do is get it




More information about the Zodb-checkins mailing list