summaryrefslogtreecommitdiff
path: root/test/test_coverage.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2011-03-22 07:58:28 -0400
committerNed Batchelder <ned@nedbatchelder.com>2011-03-22 07:58:28 -0400
commit67a56e01aab739c49db65318a271c4c91f8db294 (patch)
tree311055772848bd4bee3b0849ec57d1be1c456342 /test/test_coverage.py
parent43167860f5d36940bd56b0a55d4694ab27fff182 (diff)
downloadpython-coveragepy-67a56e01aab739c49db65318a271c4c91f8db294.tar.gz
Add a test helper for checking on the existence of files.
Diffstat (limited to 'test/test_coverage.py')
-rw-r--r--test/test_coverage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_coverage.py b/test/test_coverage.py
index 4d3c37f..fe81da7 100644
--- a/test/test_coverage.py
+++ b/test/test_coverage.py
@@ -1704,7 +1704,7 @@ class ReportingTest(CoverageTest):
CoverageException, "No data to report.",
self.command_line, "annotate -d ann"
)
- self.assertFalse(os.path.exists("ann"))
+ self.assert_doesnt_exist("ann")
def test_no_data_to_report_on_html(self):
# Reporting with no data produces a nice message and no output dir.
@@ -1712,7 +1712,7 @@ class ReportingTest(CoverageTest):
CoverageException, "No data to report.",
self.command_line, "html -d htmlcov"
)
- self.assertFalse(os.path.exists("htmlcov"))
+ self.assert_doesnt_exist("htmlcov")
def test_no_data_to_report_on_xml(self):
# Reporting with no data produces a nice message.