[Zodb-checkins] CVS: ZODB3/ZEO/tests - test_cache.py:1.1.2.5
Jeremy Hylton
cvs-admin at zope.org
Wed Nov 12 17:20:42 EST 2003
Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv2916/ZEO/tests
Modified Files:
Tag: ZODB3-mvcc-2-branch
test_cache.py
Log Message:
Change cache's load() to work like storage's loadEx().
=== ZODB3/ZEO/tests/test_cache.py 1.1.2.4 => 1.1.2.5 ===
--- ZODB3/ZEO/tests/test_cache.py:1.1.2.4 Tue Nov 11 16:45:49 2003
+++ ZODB3/ZEO/tests/test_cache.py Wed Nov 12 17:20:39 2003
@@ -50,8 +50,8 @@
self.assertEqual(self.cache.load(n1, ""), None)
self.assertEqual(self.cache.load(n1, "version"), None)
self.cache.store(n1, "", n2, n3, None, data1)
- self.assertEqual(self.cache.load(n1, ""), (data1, n2))
- self.assertEqual(self.cache.load(n1, "version"), (data1, n2))
+ self.assertEqual(self.cache.load(n1, ""), (data1, n2, n3))
+ self.assertEqual(self.cache.load(n1, "version"), (data1, n2, n3))
self.assertEqual(self.cache.modifiedInVersion(n1), None)
def testInvalidate(self):
@@ -68,7 +68,7 @@
data1v = "data for n1 in version"
self.cache.store(n1, "version", n2, n3, None, data1v)
self.assertEqual(self.cache.load(n1, ""), None)
- self.assertEqual(self.cache.load(n1, "version"), (data1v, n2))
+ self.assertEqual(self.cache.load(n1, "version"), (data1v, n2, n3))
self.assertEqual(self.cache.modifiedInVersion(n1), "version")
self.cache.invalidate(n1, "version", n4)
self.assertEqual(self.cache.load(n1, "version"), None)
More information about the Zodb-checkins
mailing list