diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2011-03-22 07:58:28 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2011-03-22 07:58:28 -0400 |
commit | 1f950ca6c4c1da6d5f2f37faeb0217e9ff273b75 (patch) | |
tree | 46f489f147b0319d7966344d46199464872c3287 /test/test_coverage.py | |
parent | 8cb2411f3ed6db02f7a7dd60883c8dd698b5a69f (diff) | |
download | python-coveragepy-git-1f950ca6c4c1da6d5f2f37faeb0217e9ff273b75.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.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_coverage.py b/test/test_coverage.py index 4d3c37f5..fe81da76 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. |