diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-08-10 16:39:22 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-08-10 16:39:22 -0400 |
commit | 8562aeb29eddf3349f5c363c1842f9822b18a450 (patch) | |
tree | 7f4c0f16843c4f9b78cc49c4f6d0354a0d8a0f91 /tests/test_data.py | |
parent | 90bb6a77e02cbac6a23723b5907d5f59d1db1b82 (diff) | |
download | python-coveragepy-git-8562aeb29eddf3349f5c363c1842f9822b18a450.tar.gz |
Move line_counts out of the data classes
Diffstat (limited to 'tests/test_data.py')
-rw-r--r-- | tests/test_data.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_data.py b/tests/test_data.py index a450f90b..7ca6f655 100644 --- a/tests/test_data.py +++ b/tests/test_data.py @@ -12,7 +12,7 @@ import re import mock from coverage.data import CoverageData, debug_main, canonicalize_json_data, combine_parallel_data -from coverage.data import add_data_to_hash +from coverage.data import add_data_to_hash, line_counts from coverage.debug import DebugControlString from coverage.files import PathAliases, canonical_filename from coverage.misc import CoverageException @@ -74,9 +74,9 @@ MEASURED_FILES_3_4 = ['x.py', 'y.py', 'z.py'] class DataTestHelpers(CoverageTest): """Test helpers for data tests.""" - def assert_line_counts(self, covdata, line_counts, fullpath=False): - """Check that the line_counts of `covdata` is `line_counts`.""" - self.assertEqual(covdata.line_counts(fullpath), line_counts) + def assert_line_counts(self, covdata, counts, fullpath=False): + """Check that the line_counts of `covdata` is `counts`.""" + self.assertEqual(line_counts(covdata, fullpath), counts) def assert_measured_files(self, covdata, measured): """Check that `covdata`'s measured files are `measured`.""" |