[Zope3-checkins] CVS: Zope3/src/zope/app/index/text/tests - test_index.py:1.6

R. Sean Bowman sean.bowman@acm.org
Wed, 5 Feb 2003 23:31:22 -0500


Update of /cvs-repository/Zope3/src/zope/app/index/text/tests
In directory cvs.zope.org:/tmp/cvs-serv8752/zope/app/index/text/tests

Modified Files:
	test_index.py 
Log Message:
changed service names to use strings defined in
zope/component/servicenames.py, changed the name of
ErrorReportingService to ErrorReports


=== Zope3/src/zope/app/index/text/tests/test_index.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/index/text/tests/test_index.py:1.5	Mon Dec 30 09:03:08 2002
+++ Zope3/src/zope/app/index/text/tests/test_index.py	Wed Feb  5 23:30:49 2003
@@ -26,6 +26,7 @@
 from zope.app.interfaces.traversing import ITraverser
 from zope.app.traversing import locationAsUnicode, traverse
 from zope.component import getService
+from zope.component.servicenames import HubIds
 from zope.app.interfaces.services.hub import \
      IRegistrationHubEvent, IObjectModifiedHubEvent
 from zope.app.services.hub import \
@@ -95,7 +96,7 @@
         # Technically this is a functional test
         self.createStandardServices()
         index = traverse(self.rootFolder, '/myIndex')
-        hub = getService(self.rootFolder, 'HubIds')
+        hub = getService(self.rootFolder, HubIds)
         
         hub.subscribe(index, IRegistrationHubEvent)
         hub.subscribe(index, IObjectModifiedHubEvent)
@@ -125,7 +126,7 @@
         self.assertAbsent(Bruce)
         self.assertAbsent(Sheila)
         location = '/bruce'
-        hub = getService(self.rootFolder, 'HubIds')
+        hub = getService(self.rootFolder, HubIds)
         hubid = hub.register(location)
         index.subscribe(hub)
         self.assertEqual(index.isSubscribed(), True)