[Zope-Checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture/tests - testServiceManagerContainer.py:1.4
Jim Fulton
jim@zope.com
Mon, 15 Jul 2002 18:01:12 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/ComponentArchitecture/tests
In directory cvs.zope.org:/tmp/cvs-serv3603/lib/python/Zope/ComponentArchitecture/tests
Modified Files:
testServiceManagerContainer.py
Log Message:
Added logic to the ZopePublication object to handle placeful
authentication services.
Fixed some bugs in the service manager and made the mapping
implementation there handle only local services.
Refactored the tests in ZopePublication to push some of the
browser-specific tests down to the Browser package.
=== Zope3/lib/python/Zope/ComponentArchitecture/tests/testServiceManagerContainer.py 1.3 => 1.4 ===
def testGet(self):
smc=self._Test__new()
# since the managers are now wrapped, need to look at base object
- self.failUnless(getbaseobject(smc.getServiceManager(self)) is self)
+ self.failUnless(getbaseobject(smc.queryServiceManager()) is None)
self.assertRaises(ComponentLookupError, smc.getServiceManager)
sm=ServiceManager()
smc.setServiceManager(sm)
self.failUnless(getbaseobject(smc.getServiceManager()) is sm)
- self.failUnless(getbaseobject(smc.getServiceManager(self)) is sm)
+ self.failUnless(getbaseobject(smc.queryServiceManager(self)) is sm)
def testSet(self):
smc=self._Test__new()