[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container/tests - test_adding.py:1.6
Steve Alexander
steve@cat-box.net
Thu, 5 Jun 2003 08:42:25 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/container/tests
In directory cvs.zope.org:/tmp/cvs-serv20951/src/zope/app/browser/container/tests
Modified Files:
test_adding.py
Log Message:
ZopeContainerAdapter is now no longer used in unit tests.
=== Zope3/src/zope/app/browser/container/tests/test_adding.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/browser/container/tests/test_adding.py:1.5 Thu Jun 5 08:03:13 2003
+++ Zope3/src/zope/app/browser/container/tests/test_adding.py Thu Jun 5 08:41:54 2003
@@ -29,10 +29,9 @@
from zope.app.event.tests.placelesssetup import getEvents
from zope.app.interfaces.event import IObjectAddedEvent, IObjectModifiedEvent
-from zope.app.interfaces.container import IZopeContainer
from zope.app.interfaces.container import IContainer
from zope.interface import implements
-
+from zope.app.context import ContextWrapper
class Container:
@@ -60,6 +59,8 @@
def test(self):
container = Container()
+ # ensure container provides IZopeContainer
+ container = ContextWrapper(container, None)
request = TestRequest()
adding = Adding(container, request)
provideView(IAdding, "Thing", IBrowserPresentation, CreationView)