summaryrefslogtreecommitdiff
path: root/coverage/backunittest.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/backunittest.py')
-rw-r--r--coverage/backunittest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/coverage/backunittest.py b/coverage/backunittest.py
index 09574cc..29fea86 100644
--- a/coverage/backunittest.py
+++ b/coverage/backunittest.py
@@ -40,3 +40,8 @@ class TestCase(unittest.TestCase):
if not unittest_has('assertRegex'):
def assertRegex(self, *args, **kwargs):
return self.assertRegexpMatches(*args, **kwargs)
+
+ if not unittest_has('assertNotIn'):
+ def assertNotIn(self, needle, haystack):
+ self.assertTrue(needle not in haystack)
+