From 6cd3830d392d19b826ea0d48e5a06bb230d16f91 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 25 Nov 2009 22:27:52 +0000 Subject: Make sure the event implements. --- repoze/bfg/tests/test_configuration.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/repoze/bfg/tests/test_configuration.py b/repoze/bfg/tests/test_configuration.py index f01087b5c..a27452cc8 100644 --- a/repoze/bfg/tests/test_configuration.py +++ b/repoze/bfg/tests/test_configuration.py @@ -43,14 +43,6 @@ class ConfiguratorTests(unittest.TestCase): self.assertRaises(NotFound, wrapper, *arg) def _registerEventListener(self, config, event_iface=None): - """ Registers an event listener (aka 'subscriber') listening for - events of the type ``event_iface`` and returns a list which is - appended to by the subscriber. When an event is dispatched that - matches ``event_iface``, that event will be appended to the list. - You can then compare the values in the list to expected event - notifications. This method is useful when testing code that wants - to call ``zope.component.event.dispatch`` or - ``zope.component.event.objectEventNotify``.""" if event_iface is None: # pragma: no cover from zope.interface import Interface event_iface = Interface @@ -265,6 +257,7 @@ class ConfiguratorTests(unittest.TestCase): self.assertEqual(manager.pushed['request'], None) self.failUnless(manager.popped) self.assertEqual(len(subscriber), 1) + self.failUnless(IWSGIApplicationCreatedEvent.providedBy(subscriber[0])) def test_load_zcml_default(self): import repoze.bfg.tests.fixtureapp -- cgit v1.2.3