diff options
| author | Chris McDonough <chrism@agendaless.com> | 2008-10-02 22:51:34 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2008-10-02 22:51:34 +0000 |
| commit | fbbe23f2e9b8b73bb68e45325b143ebf253a0be3 (patch) | |
| tree | 21c26df889da7369ccc3ba882377a420feb8ad00 | |
| parent | 51dcd955690881d7e61c01a81391edf1be3ae3e4 (diff) | |
| download | pyramid-fbbe23f2e9b8b73bb68e45325b143ebf253a0be3.tar.gz pyramid-fbbe23f2e9b8b73bb68e45325b143ebf253a0be3.tar.bz2 pyramid-fbbe23f2e9b8b73bb68e45325b143ebf253a0be3.zip | |
Fix failing class_implements test, add object implements test.
| -rw-r--r-- | repoze/bfg/tests/test_events.py | 13 |
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 |
