[Zope-Checkins] CVS: Zope/lib/python/Products/Transience/tests - testTransientObject.py:1.2
Matthew T. Kromer
matt@zope.com
Wed, 14 Nov 2001 09:06:01 -0500
Update of /cvs-repository/Zope/lib/python/Products/Transience/tests
In directory cvs.zope.org:/tmp/cvs-serv3139
Modified Files:
testTransientObject.py
Log Message:
Update tests after last night's change to default behavior of get to return
None rather than raise KeyError
=== Zope/lib/python/Products/Transience/tests/testTransientObject.py 1.1 => 1.2 ===
for k in data.keys():
assert t.get(k) == data.get(k)
- self.assertRaises(KeyError, self._genKeyError, t)
+ assert t.get('foobie') is None
self.assertRaises(AttributeError, self._genLenError, t)
assert t.get('foobie',None) is None
assert t.has_key('a')
@@ -167,7 +167,7 @@
assert t.get('foo') == 'bar'
t.set('foobie', 'blech')
t.delete('foobie')
- self.assertRaises(KeyError, self._genKeyError, t)
+ assert t.get('foobie') is None
def test_suite():