[Checkins] SVN: zope.app.container/trunk/src/zope/app/container/browser/tests/test_adding.py Updated test to accomodate "Pythonic" exception now raised from ``__setitem__`` provided by ``zope.container``:
Tres Seaver
tseaver at palladion.com
Thu Feb 5 12:24:17 EST 2009
Log message for revision 96149:
Updated test to accomodate "Pythonic" exception now raised from ``__setitem__`` provided by ``zope.container``:
o ``KeyError`` instead of ``zope.exceptions.UserError``.
Changed:
U zope.app.container/trunk/src/zope/app/container/browser/tests/test_adding.py
-=-
Modified: zope.app.container/trunk/src/zope/app/container/browser/tests/test_adding.py
===================================================================
--- zope.app.container/trunk/src/zope/app/container/browser/tests/test_adding.py 2009-02-05 17:23:23 UTC (rev 96148)
+++ zope.app.container/trunk/src/zope/app/container/browser/tests/test_adding.py 2009-02-05 17:24:17 UTC (rev 96149)
@@ -162,7 +162,7 @@
self.assertRaises(UserError, adding.action, id='bar')
# missing id
- self.assertRaises(UserError, adding.action, type_name='foo')
+ self.assertRaises(KeyError, adding.action, type_name='foo')
# bad type_name
self.assertRaises(ComponentLookupError, adding.action,
More information about the Checkins
mailing list