[Zope3-checkins] CVS: Zope3/src/zope/app/browser/component/tests - test_interfacewidget.py:1.17

R. Sean Bowman sean.bowman@acm.org
Thu, 6 Feb 2003 01:50:36 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/component/tests
In directory cvs.zope.org:/tmp/cvs-serv18167/zope/app/browser/component/tests

Modified Files:
	test_interfacewidget.py 
Log Message:
finished changing service names to use strings defined in
zope/component/servicenames.py, changed the name of
ErrorReportingService to ErrorReports and Resources to ResourceService


=== Zope3/src/zope/app/browser/component/tests/test_interfacewidget.py 1.16 => 1.17 ===
--- Zope3/src/zope/app/browser/component/tests/test_interfacewidget.py:1.16	Sat Jan 25 08:09:57 2003
+++ Zope3/src/zope/app/browser/component/tests/test_interfacewidget.py	Thu Feb  6 01:49:00 2003
@@ -28,6 +28,7 @@
 from zope.app.browser.component.interfacewidget import MultiInterfaceWidget
 from zope.publisher.browser import TestRequest
 from zope.component.service import serviceManager, defineService
+from zope.component.servicenames import Interfaces
 from zope.app.interfaces.form import ConversionError
 
 class I(Interface):
@@ -51,8 +52,8 @@
 
     def setUp(self):
         service = InterfaceService()
-        defineService('Interfaces', IInterfaceService)
-        serviceManager.provideService('Interfaces', service)
+        defineService(Interfaces, IInterfaceService)
+        serviceManager.provideService(Interfaces, service)
         service.provideInterface(I.__module__+'.'+I.__name__, I)
         service.provideInterface(I2.__module__+'.'+I2.__name__, I2)
         service.provideInterface(I3.__module__+'.'+I3.__name__, I3)