[Zope3-checkins] CVS: Zope3/src/zope/app/site/tests -
test_serviceregistration.py:1.4
Mark McEahern
mark at mceahern.com
Tue Mar 23 10:15:07 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/site/tests
In directory cvs.zope.org:/tmp/cvs-serv27175/src/zope/app/site/tests
Modified Files:
test_serviceregistration.py
Log Message:
Converted the use of IAddNotifiable and IRemoveNotifiable to the use
of subscriber adapters.
=== Zope3/src/zope/app/site/tests/test_serviceregistration.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/site/tests/test_serviceregistration.py:1.3 Sat Mar 13 17:02:09 2004
+++ Zope3/src/zope/app/site/tests/test_serviceregistration.py Tue Mar 23 10:15:06 2004
@@ -111,36 +111,6 @@
def test_getComponent(self):
self.assertEqual(self.__config.getComponent(), self.__c)
- def test_addNotify(self):
- self.assertEqual(self.__c._dependents,
- (self.__configpath, ))
- u = IRegistered(self.__c)
- self.assertEqual(list(u.usages()),
- [self.__configpath])
-
- def test_removeNotify_and_unregistered(self):
- self.__config.status = RegisteredStatus
-
- sm = getServiceManager(self.__default)
- registry = sm.queryRegistrationsFor(self.__config)
- self.failUnless(registry, "The components should be registered")
-
- del self.__cm[self.__registration_name]
- self.assertEqual(self.__c._dependents, ())
- u = IRegistered(self.__c)
- self.assertEqual(len(u.usages()), 0)
-
- self.failIf(registry, "The components should not be registered")
-
- def test_disallow_delete_when_active(self):
- self.__config.status = ActiveStatus
- try:
- del self.__cm[self.__registration_name]
- except DependencyError:
- pass # OK
- else:
- self.fail("Should have gotten a dependency error")
-
def test_not_a_local_service(self):
defineService('test_service_2', ITestService)
self.__default['c2'] = TestServiceBase()
More information about the Zope3-Checkins
mailing list