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

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <20100909184838.6E76F941EF__1979.49271318993$1284058124$gmane$org@cvs.zope.org>
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):
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.