[Zope-Checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture/tests - testService.py:1.4 testNextService.py:NONE testServiceManagerContainer.py:NONE
   
    Jim Fulton
     
    jim@zope.com
       
    Thu, 1 Aug 2002 14:42:48 -0400
    
    
  
Update of /cvs-repository/Zope3/lib/python/Zope/ComponentArchitecture/tests
In directory cvs.zope.org:/tmp/cvs-serv5741/lib/python/Zope/ComponentArchitecture/tests
Modified Files:
	testService.py 
Removed Files:
	testNextService.py testServiceManagerContainer.py 
Log Message:
Removed dependcies of:
  Zope.ComponentArchitecture
  Zope.Configuration
  Zope.Exceptions
  Zope.Testing
on other packages, especially App, in preparation for making these
packages part of Zope 2 and useful outside of the Zope application.
In particular, all placeful service support was moved to
Zope.App.ComponentArchitecture.  
Placeful service implementors should get the nextService and
nextServiceManager functions from
Zope.App.ComponentArchitecture.NextService. 
=== Zope3/lib/python/Zope/ComponentArchitecture/tests/testService.py 1.3 => 1.4 ===
      import getServiceDefinitions, getService, getServiceManager
 from Zope.ComponentArchitecture.GlobalServiceManager \
      import UndefinedService, InvalidService
-from Zope.ComponentArchitecture.ServiceManagerContainer \
-     import ServiceManagerContainer
 from Zope.ComponentArchitecture.Exceptions import ComponentLookupError
 
 from Zope.ComponentArchitecture import queryService
@@ -95,8 +93,9 @@
         getServiceManager(None).defineService('one', IOne)
         c = ServiceOne()
         getServiceManager(None).provideService('one', c)
-        smc = ServiceManagerContainer()
-        self.assertEqual(id(getService(smc, 'one')), id(c))
+        class C: pass
+        foo = C()
+        self.assertEqual(id(getService(foo, 'one')), id(c))
         
     def testGetServiceDefinitions(self):
         """test that the service definitions are the ones we added"""
=== Removed File Zope3/lib/python/Zope/ComponentArchitecture/tests/testNextService.py ===
=== Removed File Zope3/lib/python/Zope/ComponentArchitecture/tests/testServiceManagerContainer.py ===