[Zodb-checkins] CVS: ZODB3/ZEO/tests - ConnectionTests.py:1.46.2.1
Jeremy Hylton
cvs-admin at zope.org
Wed Nov 5 23:34:17 EST 2003
Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv28460/ZEO/tests
Modified Files:
Tag: ZODB3-mvcc-2-branch
ConnectionTests.py
Log Message:
Change tests to use contents() method instead of inspecting _cache.
_cache is an implementation detail that won't necessarily exist in the
new cache.
=== ZODB3/ZEO/tests/ConnectionTests.py 1.46 => 1.46.2.1 ===
--- ZODB3/ZEO/tests/ConnectionTests.py:1.46 Thu Oct 2 19:56:31 2003
+++ ZODB3/ZEO/tests/ConnectionTests.py Wed Nov 5 23:34:15 2003
@@ -856,7 +856,7 @@
unless = self.failUnless
self._storage = storage = self.openClientStorage()
# Assert that the zeo cache is empty
- unless(not storage._cache._index)
+ unless(not list(storage._cache.contents()))
# Create the object
oid = storage.new_oid()
obj = MinPO(7)
@@ -875,7 +875,7 @@
# We expect finish to fail
raises(ClientDisconnected, storage.tpc_finish, t)
# The cache should still be empty
- unless(not storage._cache._index)
+ unless(not list(storage._cache.contents()))
# Load should fail since the object should not be in either the cache
# or the server.
raises(KeyError, storage.load, oid, '')
@@ -886,7 +886,7 @@
unless = self.failUnless
self._storage = storage = self.openClientStorage()
# Assert that the zeo cache is empty
- unless(not storage._cache._index)
+ unless(not list(storage._cache.contents()))
# Create the object
oid = storage.new_oid()
obj = MinPO(7)
More information about the Zodb-checkins
mailing list