[Zope3-checkins] CVS: Zope3/src/zope/app/services/tests - test_adapter.py:1.15
Jim Fulton
jim@zope.com
Mon, 2 Jun 2003 15:40:49 -0400
Update of /cvs-repository/Zope3/src/zope/app/services/tests
In directory cvs.zope.org:/tmp/cvs-serv28233/src/zope/app/services/tests
Modified Files:
test_adapter.py
Log Message:
Made the phony service manager delegate getService requests to the
global service manager, because some calls the tests are making need
to get at some services.
=== Zope3/src/zope/app/services/tests/test_adapter.py 1.14 => 1.15 ===
--- Zope3/src/zope/app/services/tests/test_adapter.py:1.14 Sun Jun 1 11:59:36 2003
+++ Zope3/src/zope/app/services/tests/test_adapter.py Mon Jun 2 15:40:49 2003
@@ -29,6 +29,7 @@
from zope.app.traversing import traverse
from zope.component.interfaces import IServiceService
from zope.component.adapter import provideAdapter
+from zope.component.service import serviceManager
class I1(Interface):
pass
@@ -280,6 +281,11 @@
def resolve(self, name):
if name == 'Foo.Bar.A':
return A
+
+ def getService(self, name):
+ return serviceManager.getService(name)
+
+
class TestAdapterConfiguration(PlacefulSetup, TestCase):