summaryrefslogtreecommitdiff
path: root/test/test_api.py
diff options
context:
space:
mode:
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 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()