[Zope-Checkins] CVS: ZODB3/ZEO/tests - ConnectionTests.py:1.20

Jeremy Hylton jeremy@zope.com
Tue, 4 Mar 2003 14:57:21 -0500


Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv24400/ZEO/tests

Modified Files:
	ConnectionTests.py 
Log Message:
Fix isReadOnly() to return True for a read-only fallback connection.


=== ZODB3/ZEO/tests/ConnectionTests.py 1.19 => 1.20 ===
--- ZODB3/ZEO/tests/ConnectionTests.py:1.19	Mon Jan 27 18:49:41 2003
+++ ZODB3/ZEO/tests/ConnectionTests.py	Tue Mar  4 14:56:46 2003
@@ -245,6 +245,7 @@
         self.startServer(create=0, index=0, ro_svr=1)
         # Start a read-only-fallback client
         self._storage = self.openClientStorage(read_only_fallback=1)
+        self.assert_(self._storage.isReadOnly())
         # Stores should fail here
         self.assertRaises(ReadOnlyError, self._dostore)