[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/site/tests/test_serviceregistration.py Fixed broken tests...sorry about that :(

Garrett Smith garrett at mojave-corp.com
Mon Feb 7 19:25:26 EST 2005


Log message for revision 29081:
  Fixed broken tests...sorry about that :(

Changed:
  U   Zope3/trunk/src/zope/app/site/tests/test_serviceregistration.py

-=-
Modified: Zope3/trunk/src/zope/app/site/tests/test_serviceregistration.py
===================================================================
--- Zope3/trunk/src/zope/app/site/tests/test_serviceregistration.py	2005-02-08 00:07:11 UTC (rev 29080)
+++ Zope3/trunk/src/zope/app/site/tests/test_serviceregistration.py	2005-02-08 00:25:26 UTC (rev 29081)
@@ -38,7 +38,7 @@
 class TestServiceBase(object):
     __name__ = __parent__ = None
     implements(ITestService, IBindingAware, IDependable)
-    
+
     _bound = _unbound = ()
 
     def bound(self, name):
@@ -99,15 +99,15 @@
     def test_handleActivated(self):
         old = self.__c._bound
         event = Event(self.__config)
-        from zope.app.site.service import handleActivated
-        handleActivated(event)
+        from zope.app.site.service import bindOnActivated
+        bindOnActivated(self.__config.component, event)
         self.assertEqual(self.__c._bound, old+('test_service',))
 
     def test_deactivated(self):
         old = self.__c._unbound
         event = Event(self.__config)
-        from zope.app.site.service import handleDeactivated
-        handleDeactivated(event)
+        from zope.app.site.service import unbindOnDeactivated
+        unbindOnDeactivated(self.__config.component, event)
         self.assertEqual(self.__c._unbound, old+('test_service',))
 
     def test_getInterface(self):



More information about the Zope3-Checkins mailing list