diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-10 18:19:25 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-10 18:19:25 -0500 |
commit | 99480be7da89cb82cfff01e5d10a2514546faf39 (patch) | |
tree | 1268826ee7f83571ec20a7074edbb5c19aeb2224 /test/test_api.py | |
parent | f52b43321aad4c8e50bafbfbe95f1e7e570b4b8d (diff) | |
download | python-coveragepy-git-99480be7da89cb82cfff01e5d10a2514546faf39.tar.gz |
Add in assertNotIn.
Diffstat (limited to 'test/test_api.py')
-rw-r--r-- | test/test_api.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/test_api.py b/test/test_api.py index aa0e726b..bbea8e62 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() |