[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/tests/BasicStorage.py Added missing (sub)test for calling tpc_vote with wrong transaction.

Jim Fulton jim at zope.com
Thu Sep 9 14:48:38 EDT 2010


Log message for revision 116279:
  Added missing (sub)test for calling tpc_vote with wrong transaction.
  

Changed:
  U   ZODB/trunk/src/ZODB/tests/BasicStorage.py

-=-
Modified: ZODB/trunk/src/ZODB/tests/BasicStorage.py
===================================================================
--- ZODB/trunk/src/ZODB/tests/BasicStorage.py	2010-09-09 18:48:36 UTC (rev 116278)
+++ ZODB/trunk/src/ZODB/tests/BasicStorage.py	2010-09-09 18:48:38 UTC (rev 116279)
@@ -52,6 +52,10 @@
             POSException.StorageTransactionError,
             self._storage.store,
             ZERO, 1, '2', '', transaction.Transaction())
+
+        self.assertRaises(
+            POSException.StorageTransactionError,
+            self._storage.tpc_vote, transaction.Transaction())
         self._storage.tpc_abort(t)
 
     def checkSerialIsNoneForInitialRevision(self):



More information about the Zodb-checkins mailing list