Commit afe3b1bd authored by Barry Warsaw's avatar Barry Warsaw

Ported from ZODB4

checkTransactionExtensionFromIterator(): New test which BDBFullStorage
was failing because it wasn't unpickling the transaction extension
data.
parent 83e3bf2b
......@@ -115,6 +115,16 @@ class IteratorStorage(IteratorCompare):
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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment