[Zope3-checkins] CVS: Zope3/src/zope/app/services/tests - test_configurationmanager.py:1.11
Steve Alexander
steve@cat-box.net
Thu, 5 Jun 2003 08:23:37 -0400
Update of /cvs-repository/Zope3/src/zope/app/services/tests
In directory cvs.zope.org:/tmp/cvs-serv18398/src/zope/app/services/tests
Modified Files:
test_configurationmanager.py
Log Message:
Fixed dependency on ZopeContainerAdapter
=== Zope3/src/zope/app/services/tests/test_configurationmanager.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/services/tests/test_configurationmanager.py:1.10 Thu Jun 5 08:03:18 2003
+++ Zope3/src/zope/app/services/tests/test_configurationmanager.py Thu Jun 5 08:23:37 2003
@@ -28,6 +28,7 @@
from zope.interface.common.tests.basemapping import BaseTestIEnumerableMapping
from zope.interface.verify import verifyObject
from zope.interface import implements
+from zope.app.context import ContextWrapper
class Undeletable:
@@ -334,6 +335,7 @@
def test_manageBeforeDelete(self):
container = []
manager = ConfigurationManager()
+ manager = ContextWrapper(manager, None) # decorate to IZopeContainer
thingy = Undeletable()
manager.setObject('xyzzy', thingy)
manager.beforeDeleteHook(manager, container)