[Zodb-checkins] CVS: StandaloneZODB/ZEO/tests - testZEO.py:1.1.2.14
Jim Fulton
jim@zope.com
Thu, 20 Dec 2001 15:47:03 -0500
Update of /cvs-repository/StandaloneZODB/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv28407/ZEO/tests
Modified Files:
Tag: ZEO-ZRPC-Dev
testZEO.py
Log Message:
Re-factor the disconnection test from the rollover test.
=== StandaloneZODB/ZEO/tests/testZEO.py 1.1.2.13 => 1.1.2.14 ===
self.__super_tearDown()
+ def checkDisconnectionError(self):
+ """Make sure we get a Disconnected when we try to read an
+ object when we're not connected to a storage server and the
+ object is not in the cache. """
+ self.shutdownServer()
+ self._storage = self.openClientStorage('test', 1000, 0)
+ self.assertRaises(Disconnected, self._storage.load, 'fredwash', '')
+
def checkBasicPersistence(self):
"""Verify cached data persists across client storage instances.
@@ -310,8 +318,8 @@
self._storage.close()
self.shutdownServer()
self._storage = self.openClientStorage('test', 1000, 0)
+ self._storage.load(oid1, '')
self._storage.load(oid2, '')
- self.assertRaises(Disconnected, self._storage.load, oid1, '')
def checkReconnection(self):
"""Check that the client reconnects when a server restarts."""