[Zodb-checkins] CVS: StandaloneZODB/ZODB/tests - BasicStorage.py:1.14.18.2
Jeremy Hylton
jeremy@zope.com
Fri, 18 Jan 2002 12:24:26 -0500
Update of /cvs-repository/StandaloneZODB/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv4981/ZODB/tests
Modified Files:
Tag: Standby-branch
BasicStorage.py
Log Message:
Add test of tpc_begin() with two arguments.
XXX should add a test of three args, but I'm not sure what the third
arg does.
=== StandaloneZODB/ZODB/tests/BasicStorage.py 1.14.18.1 => 1.14.18.2 ===
revid2 = self._dostore(oid, revid=revid1, data=p42)
eq(revid2, self._storage.getSerial(oid))
+
+ def checkTwoArgBegin(self):
+ # XXX how standard is three-argument tpc_begin()?
+ t = Transaction()
+ tid = chr(42) * 8
+ self._storage.tpc_begin(t, tid)
+ oid = self._storage.new_oid()
+ data = zodb_pickle(MinPO(8))
+ self._storage.store(oid, None, data, '', t)
+ self._storage.tpc_vote(t)
+ self._storage.tpc_finish(t)