summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--repoze/bfg/tests/test_events.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/repoze/bfg/tests/test_events.py b/repoze/bfg/tests/test_events.py
index f3da5d6a6..d7ab772f5 100644
--- a/repoze/bfg/tests/test_events.py
+++ b/repoze/bfg/tests/test_events.py
@@ -53,13 +53,20 @@ class NewResponseEventTests(unittest.TestCase):
self.assertEqual(inst.response, response)
class WSGIAppEventTests(unittest.TestCase):
- def test_class_implements(self):
+ def test_object_implements(self):
from repoze.bfg.events import WSGIApplicationCreatedEvent
event = WSGIApplicationCreatedEvent(object())
from repoze.bfg.interfaces import IWSGIApplicationCreatedEvent
+ from zope.interface.verify import verifyObject
+ verifyObject(IWSGIApplicationCreatedEvent, event)
+
+ def test_class_implements(self):
+ from repoze.bfg.events import WSGIApplicationCreatedEvent
+ from repoze.bfg.interfaces import IWSGIApplicationCreatedEvent
from zope.interface.verify import verifyClass
- verifyClass(IWSGIApplicationCreatedEvent, event)
-
+ verifyClass(IWSGIApplicationCreatedEvent, WSGIApplicationCreatedEvent)
+
+
class DummyRequest:
pass