[Zope3-checkins]
SVN: Zope3/branches/jim-adapter/src/zope/component/testing.py
Include the new registration dispatchers.
Jim Fulton
jim at zope.com
Sat Apr 22 11:02:35 EDT 2006
Log message for revision 67274:
Include the new registration dispatchers.
Changed:
U Zope3/branches/jim-adapter/src/zope/component/testing.py
-=-
Modified: Zope3/branches/jim-adapter/src/zope/component/testing.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/component/testing.py 2006-04-22 15:02:32 UTC (rev 67273)
+++ Zope3/branches/jim-adapter/src/zope/component/testing.py 2006-04-22 15:02:34 UTC (rev 67274)
@@ -15,8 +15,13 @@
$Id$
"""
-import zope.component
+from zope.component import provideHandler
from zope.component.event import objectEventNotify
+from zope.component.registry import dispatchUtilityRegistrationEvent
+from zope.component.registry import dispatchAdapterRegistrationEvent
+from zope.component.registry import (
+ dispatchSubscriptionAdapterRegistrationEvent)
+from zope.component.registry import dispatchHandlerRegistrationEvent
from zope.testing import cleanup
events = []
@@ -39,8 +44,12 @@
def setUp(self):
super(PlacelessSetup, self).setUp()
- zope.component.provideHandler(events.append, (None,))
- zope.component.provideHandler(objectEventNotify)
+ provideHandler(events.append, (None,))
+ provideHandler(objectEventNotify)
+ provideHandler(dispatchUtilityRegistrationEvent)
+ provideHandler(dispatchAdapterRegistrationEvent)
+ provideHandler(dispatchSubscriptionAdapterRegistrationEvent)
+ provideHandler(dispatchHandlerRegistrationEvent)
def setUp(test=None):
PlacelessSetup().setUp()
More information about the Zope3-Checkins
mailing list