From 67a56e01aab739c49db65318a271c4c91f8db294 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 22 Mar 2011 07:58:28 -0400 Subject: Add a test helper for checking on the existence of files. --- test/test_coverage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test_coverage.py') 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. -- cgit v1.2.1