[Checkins] SVN: zope.component/tseaver-test_cleanup/ Doctest covered in zope.interface.
Tres Seaver
cvs-admin at zope.org
Mon Jun 18 18:17:39 UTC 2012
Log message for revision 126962:
Doctest covered in zope.interface.
Changed:
_U zope.component/tseaver-test_cleanup/
U zope.component/tseaver-test_cleanup/src/zope/component/tests/test_doctests.py
-=-
Modified: zope.component/tseaver-test_cleanup/src/zope/component/tests/test_doctests.py
===================================================================
--- zope.component/tseaver-test_cleanup/src/zope/component/tests/test_doctests.py 2012-06-18 18:17:32 UTC (rev 126961)
+++ zope.component/tseaver-test_cleanup/src/zope/component/tests/test_doctests.py 2012-06-18 18:17:36 UTC (rev 126962)
@@ -435,37 +435,6 @@
>>> tearDown()
"""
-
-def test_multi_handler_unregistration():
- """
- There was a bug where multiple handlers for the same required
- specification would all be removed when one of them was
- unregistered:
-
- >>> from zope.component.testing import setUp, tearDown
- >>> setUp()
- >>> class I(zope.interface.Interface):
- ... pass
- >>> def factory1(event):
- ... print "| Factory 1 is here"
- >>> def factory2(event):
- ... print "| Factory 2 is here"
- >>> class Event(object):
- ... zope.interface.implements(I)
- >>> from zope.interface.registry import Components
- >>> registry = Components()
- >>> registry.registerHandler(factory1, [I,])
- >>> registry.registerHandler(factory2, [I,])
- >>> registry.handle(Event())
- | Factory 1 is here
- | Factory 2 is here
- >>> registry.unregisterHandler(factory1, [I,])
- True
- >>> registry.handle(Event())
- | Factory 2 is here
- >>> tearDown()
- """
-
def test_zcml_handler_site_manager():
"""
The ZCML directives provided by zope.component use the ``getSiteManager``
More information about the checkins
mailing list