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, 3 insertions, 1 deletions
diff --git a/repoze/bfg/tests/test_testing.py b/repoze/bfg/tests/test_testing.py
index aa00b5c33..0dd3539df 100644
--- a/repoze/bfg/tests/test_testing.py
+++ b/repoze/bfg/tests/test_testing.py
@@ -287,7 +287,7 @@ class TestDummyModel(unittest.TestCase):
klass = self._getTargetClass()
return klass(name, parent, **kw)
- def test__setitem__and__getitem__and__contains__(self):
+ def test__setitem__and__getitem__and__delitem__and__contains__(self):
class Dummy:
pass
dummy = Dummy()
@@ -298,6 +298,8 @@ class TestDummyModel(unittest.TestCase):
self.assertEqual(model['abc'], dummy)
self.assertRaises(KeyError, model.__getitem__, 'none')
self.failUnless('abc' in model)
+ del model['abc']
+ self.failIf('abc' in model)
def test_extra_params(self):
model = self._makeOne(foo=1)