summaryrefslogtreecommitdiff
path: root/test/test_api.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-11-10 18:19:25 -0500
committerNed Batchelder <ned@nedbatchelder.com>2012-11-10 18:19:25 -0500
commit5fc7c53a6d94cacf7f7b5fb26013ea28017abbc4 (patch)
tree810adfb449ede6ca20a66eb51ae8770a5fb87c42 /test/test_api.py
parentbd179654c530a2d20a79104514e4f9e663d33cfe (diff)
downloadpython-coveragepy-5fc7c53a6d94cacf7f7b5fb26013ea28017abbc4.tar.gz
Add in assertNotIn.
Diffstat (limited to 'test/test_api.py')
-rw-r--r--test/test_api.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/test_api.py b/test/test_api.py
index aa0e726..bbea8e6 100644
--- a/test/test_api.py
+++ b/test/test_api.py
@@ -366,16 +366,12 @@ class OmitIncludeTestsMixin(UsingModulesMixin):
def filenames_in(self, summary, filenames):
"""Assert the `filenames` are in the keys of `summary`."""
for filename in filenames.split():
- self.assert_(filename in summary,
- "%s should be in %r" % (filename, summary)
- )
+ self.assertIn(filename, summary)
def filenames_not_in(self, summary, filenames):
"""Assert the `filenames` are not in the keys of `summary`."""
for filename in filenames.split():
- self.assert_(filename not in summary,
- "%s should not be in %r" % (filename, summary)
- )
+ self.assertNotIn(filename, summary)
def test_nothing_specified(self):
result = self.coverage_usepkgs()