[Zope3-checkins] CVS: Zope3/src/zope/app/tests -
test_introspector.py:1.6
Sidnei da Silva
sidnei at x3ng.com.br
Mon Aug 11 13:55:56 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/tests
In directory cvs.zope.org:/tmp/cvs-serv15972
Modified Files:
test_introspector.py
Log Message:
Adjusted tests accordingly
=== Zope3/src/zope/app/tests/test_introspector.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/tests/test_introspector.py:1.5 Wed Jul 2 11:23:06 2003
+++ Zope3/src/zope/app/tests/test_introspector.py Mon Aug 11 12:55:51 2003
@@ -28,6 +28,10 @@
from zope.app.services.interface import LocalInterfaceService
from zope.app.services.tests.placefulsetup import PlacefulSetup
from zope.app.component.globalinterfaceservice import provideInterface
+from zope.app.component.metaconfigure import provideService
+from zope.app.component.globalinterfaceservice import InterfaceService
+from zope.app.interfaces.component import IInterfaceService
+from zope.component.service import serviceManager, defineService
class ITestClass(Interface):
def drool():
@@ -67,6 +71,22 @@
class TestIntrospector(CleanUp, TestCase):
"""Test Introspector."""
+
+ def setUp(self):
+ service = InterfaceService()
+ defineService(Interfaces, IInterfaceService)
+ serviceManager.provideService(Interfaces, service)
+ provideInterface = service.provideInterface
+ provideInterface('zope.app.tests.test_introspector.I', I)
+ provideInterface('zope.app.tests.test_introspector.I2', I2)
+ provideInterface('zope.app.tests.test_introspector.I3', I3)
+ provideInterface('zope.app.tests.test_introspector.I4', I4)
+ provideInterface('zope.app.tests.test_introspector.M1', M1)
+ provideInterface('zope.app.tests.test_introspector.M2', M2)
+ provideInterface('zope.app.tests.test_introspector.M3', M3)
+ provideInterface('zope.app.tests.test_introspector.M4', M4)
+ provideInterface('zope.app.tests.test_introspector.ITestClass',
+ ITestClass)
def test_isInterface(self):
ints = Introspector(ITestClass)
More information about the Zope3-Checkins
mailing list