summaryrefslogtreecommitdiff
path: root/repoze/bfg/tests/test_testing.py
diff options
context:
space:
mode:
Diffstat (limited to 'repoze/bfg/tests/test_testing.py')
-rw-r--r--repoze/bfg/tests/test_testing.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/repoze/bfg/tests/test_testing.py b/repoze/bfg/tests/test_testing.py
index 7c8b7ad30..72ecd96b0 100644
--- a/repoze/bfg/tests/test_testing.py
+++ b/repoze/bfg/tests/test_testing.py
@@ -402,6 +402,10 @@ class TestDummyModel(unittest.TestCase):
model = self._makeOne()
self.assertEqual(model.__nonzero__(), True)
+ def test_ctor_with__provides__(self):
+ model = self._makeOne(__provides__=IDummy)
+ self.failUnless(IDummy.providedBy(model))
+
class TestDummyRequest(unittest.TestCase):
def _getTargetClass(self):
from repoze.bfg.testing import DummyRequest