[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/tests - testAddServiceDirective.py:1.4

Jim Fulton jim@zope.com
Mon, 18 Nov 2002 18:54:38 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv26017

Modified Files:
	testAddServiceDirective.py 
Log Message:
Changed the tests to register the Zope container adapter and
dependency adapter.


=== Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/tests/testAddServiceDirective.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/tests/testAddServiceDirective.py:1.3	Mon Nov 18 08:35:43 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/tests/testAddServiceDirective.py	Mon Nov 18 18:54:38 2002
@@ -60,6 +60,20 @@
 from Zope.Publisher.Browser.IBrowserPresentation import IBrowserPresentation
 from Zope.App.OFS.Content.Folder.RootFolder import IRootFolder
 
+from Zope.ComponentArchitecture.GlobalAdapterService import provideAdapter
+
+from Zope.App.OFS.Container.IZopeContainer import IZopeContainer
+from Zope.App.OFS.Container.IContainer import IContainer
+from Zope.App.OFS.Container.ZopeContainerAdapter import ZopeContainerAdapter
+
+from Zope.App.OFS.Annotation.IAnnotatable import IAnnotatable
+from Zope.App.OFS.Annotation.IAttributeAnnotatable \
+     import IAttributeAnnotatable
+from Zope.App.OFS.Annotation.AttributeAnnotations import AttributeAnnotations
+from Zope.App.OFS.Annotation.IAnnotations import IAnnotations
+from Zope.App.DependencyFramework.IDependable import IDependable
+from Zope.App.DependencyFramework.Dependable import Dependable
+
 class I1(Interface): pass
 class C: __implements__ = I1
 
@@ -67,6 +81,12 @@
 
     def setUp(self):
         PlacefulSetup.setUp(self)
+
+        provideAdapter(IContainer, IZopeContainer, ZopeContainerAdapter)
+        provideAdapter(IAttributeAnnotatable,
+                       IAnnotations, AttributeAnnotations)
+        provideAdapter(IAnnotatable, IDependable, Dependable)
+
         self.buildFolders()
 
         adapterService = getService(None, "Adapters")