[Zope3-checkins] CVS: Zope3/src/zope/component/tests - test_utilityservice.py:1.8

Mohan Chandra mchandra at zeomega.com
Fri Dec 19 11:53:21 EST 2003


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

Modified Files:
	test_utilityservice.py 
Log Message:
Removal of Databaseconnection service 



=== Zope3/src/zope/component/tests/test_utilityservice.py 1.7 => 1.8 ===
--- Zope3/src/zope/component/tests/test_utilityservice.py:1.7	Wed Aug  6 17:16:54 2003
+++ Zope3/src/zope/component/tests/test_utilityservice.py	Fri Dec 19 11:53:21 2003
@@ -20,7 +20,7 @@
 
 from unittest import TestCase, main, makeSuite
 from zope.component import \
-     getUtility, getService, queryUtility, getServiceManager
+     getUtility, getUtilitiesFor, getService, queryUtility, getServiceManager
 from zope.component.exceptions import ComponentLookupError
 from zope.component.servicenames import Utilities
 from zope.interface import Interface, implements
@@ -60,6 +60,13 @@
         us.provideUtility(IDummyService, dummyService)
         self.assertEqual(queryUtility(None, IDummyService), dummyService)
 
+    def testgetUtilitiesFor(self):
+        us = getService(None, Utilities)
+        us.provideUtility(IDummyService, dummyService)
+        conns = getUtilitiesFor(None, IDummyService)
+        self.assertEqual(getUtilitiesFor(None, IDummyService),
+                         [('',dummyService)])
+        
     def testRegisteredMatching(self):
         us = getService(None, Utilities)
         self.assertEqual(queryUtility(None, IDummyService), None)




More information about the Zope3-Checkins mailing list