[Zope-Checkins] CVS: ZODB3/ZODB/tests - ReadOnlyStorage.py:1.4

Jeremy Hylton jeremy@zope.com
Wed, 11 Sep 2002 13:41:25 -0400


Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv14747

Modified Files:
	ReadOnlyStorage.py 
Log Message:
Change tests to reflect tpc_begin's new status as a read-only method.


=== ZODB3/ZODB/tests/ReadOnlyStorage.py 1.3 => 1.4 ===
--- ZODB3/ZODB/tests/ReadOnlyStorage.py:1.3	Wed Aug 14 18:07:09 2002
+++ ZODB3/ZODB/tests/ReadOnlyStorage.py	Wed Sep 11 13:41:25 2002
@@ -32,28 +32,16 @@
         self.assertRaises(ReadOnlyError, self._storage.new_oid)
         self.assertRaises(ReadOnlyError, self._storage.undo,
                           '\000' * 8)
-
         t = Transaction()
-        self._storage.tpc_begin(t)
+        self.assertRaises(ReadOnlyError, self._storage.tpc_begin, t)
+
         self.assertRaises(ReadOnlyError, self._storage.abortVersion,
                           '', t)
-        self._storage.tpc_abort(t)
-
-        t = Transaction()
-        self._storage.tpc_begin(t)
         self.assertRaises(ReadOnlyError, self._storage.commitVersion,
                           '', '', t)
-        self._storage.tpc_abort(t)
-
-        t = Transaction()
-        self._storage.tpc_begin(t)
         self.assertRaises(ReadOnlyError, self._storage.store,
                           '\000' * 8, None, '', '', t)
-        self._storage.tpc_abort(t)
 
         if self._storage.supportsTransactionalUndo():
-            t = Transaction()
-            self._storage.tpc_begin(t)
             self.assertRaises(ReadOnlyError, self._storage.transactionalUndo,
                               '\000' * 8, t)
-            self._storage.tpc_abort(t)