diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-20 08:18:56 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-20 08:18:56 -0400 |
commit | 3dbc97c1880b1199169e7f975795d12d5d3cf7b8 (patch) | |
tree | 88cd7da276cb66f10c21d89adfaeacb613d814a2 /tests/test_data.py | |
parent | 3c6c983fe91068d056b8bc97b15f4ae23903e2af (diff) | |
download | python-coveragepy-3dbc97c1880b1199169e7f975795d12d5d3cf7b8.tar.gz |
One more case to test, even beyond 100% coverage
Diffstat (limited to 'tests/test_data.py')
-rw-r--r-- | tests/test_data.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_data.py b/tests/test_data.py index c654c8f..7083e69 100644 --- a/tests/test_data.py +++ b/tests/test_data.py @@ -485,6 +485,18 @@ class CoverageDataFilesTest(DataTestHelpers, CoverageTest): self.assertCountEqual(arcs['x.py'], X_PY_ARCS_3) self.assertCountEqual(arcs['y.py'], Y_PY_ARCS_3) + def test_writing_to_other_file(self): + data_files = CoverageDataFiles(".otherfile") + covdata = CoverageData() + covdata.add_lines(LINES_1) + data_files.write(covdata) + self.assert_doesnt_exist(".coverage") + self.assert_exists(".otherfile") + + data_files.write(covdata, suffix="extra") + self.assert_exists(".otherfile.extra") + self.assert_doesnt_exist(".coverage") + def test_combining_with_aliases(self): covdata1 = CoverageData() covdata1.add_lines({ |