[Zodb-checkins] CVS: ZODB4/ZODB/tests - IteratorStorage.py:1.16

Barry Warsaw barry@wooz.org
Fri, 6 Dec 2002 15:43:40 -0500


Update of /cvs-repository/ZODB4/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv29141/ZODB/tests

Modified Files:
	IteratorStorage.py 
Log Message:
checkTransactionExtensionFromIterator(): New test which BDBFullStorage
was failing because it wasn't unpickling the transaction extension
data.



=== ZODB4/ZODB/tests/IteratorStorage.py 1.15 => 1.16 ===
--- ZODB4/ZODB/tests/IteratorStorage.py:1.15	Thu Aug  1 12:24:21 2002
+++ ZODB4/ZODB/tests/IteratorStorage.py	Fri Dec  6 15:43:39 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):