[Zope-Checkins] CVS: ZODB3/ZODB/tests - IteratorStorage.py:1.14

Barry Warsaw barry@wooz.org
Fri, 6 Dec 2002 16:16:27 -0500


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

Modified Files:
	IteratorStorage.py 
Log Message:
Ported from ZODB4

checkTransactionExtensionFromIterator(): New test which BDBFullStorage
was failing because it wasn't unpickling the transaction extension
data.



=== ZODB3/ZODB/tests/IteratorStorage.py 1.13 => 1.14 ===
--- ZODB3/ZODB/tests/IteratorStorage.py:1.13	Thu Dec  5 19:00:53 2002
+++ ZODB3/ZODB/tests/IteratorStorage.py	Fri Dec  6 16:16:27 2002
@@ -115,6 +115,16 @@
         self.assertEqual(rec.oid, oid)
         self.assertEqual(rec.data, None)
 
+    def checkTransactionExtensionFromIterator(self):
+        oid = self._storage.new_oid()
+        revid = self._dostore(oid, data=MinPO(1))
+        iter = self._storage.iterator()
+        count = 0
+        for txn in iter:
+            self.assertEqual(txn._extension, {})
+            count +=1
+        self.assertEqual(count, 1)
+
 
 class ExtendedIteratorStorage(IteratorCompare):