summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-11-25 22:27:52 +0000
committerChris McDonough <chrism@agendaless.com>2009-11-25 22:27:52 +0000
commit6cd3830d392d19b826ea0d48e5a06bb230d16f91 (patch)
tree113df7974611d96f5119762a4eabe6ad9cb1438d
parent6b6e43dba9ae6b381a078ac21863b44258d4057b (diff)
downloadpyramid-6cd3830d392d19b826ea0d48e5a06bb230d16f91.tar.gz
pyramid-6cd3830d392d19b826ea0d48e5a06bb230d16f91.tar.bz2
pyramid-6cd3830d392d19b826ea0d48e5a06bb230d16f91.zip
Make sure the event implements.
-rw-r--r--repoze/bfg/tests/test_configuration.py9
1 files changed, 1 insertions, 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