[Zope-Checkins] CVS: Zope/lib/python/ZODB/tests - testCache.py:1.3

Toby Dickenson tdickenson@geminidataloggers.com
Thu, 18 Apr 2002 05:15:53 -0400


Update of /cvs-repository/Zope/lib/python/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv2300

Modified Files:
	testCache.py 
Log Message:
Extra sanity checks on attributes of persistent objects; enough to fix a broken test case

=== Zope/lib/python/ZODB/tests/testCache.py 1.2 => 1.3 ===
         o = StubObject()
         # o._p_oid == None
+        self.assertRaises(TypeError, add, key, o)
+
+        o._p_oid = p64(3)
         self.assertRaises(ValueError, add, key, o)
 
         o._p_oid = key