diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-21 20:40:39 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-21 20:40:39 -0500 |
commit | e4a2350b9468c686a353e71440daf61155d72d64 (patch) | |
tree | c4d5bd01f53efc2bf0ecb3c57451f9817b8fe330 /tests/test_codeunit.py | |
parent | a806df8e0b7802af94995b769095b77621ad5a07 (diff) | |
download | python-coveragepy-git-e4a2350b9468c686a353e71440daf61155d72d64.tar.gz |
Get rid of CodeUnit, FileReporter is the new thing.
Diffstat (limited to 'tests/test_codeunit.py')
-rw-r--r-- | tests/test_codeunit.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_codeunit.py b/tests/test_codeunit.py index ea65d85f..3b873cd7 100644 --- a/tests/test_codeunit.py +++ b/tests/test_codeunit.py @@ -3,7 +3,7 @@ import os import sys -from coverage.codeunit import CodeUnit +from coverage.plugin import FileReporter from coverage.python import PythonCodeUnit from tests.coveragetest import CoverageTest @@ -93,10 +93,10 @@ class CodeUnitTest(CoverageTest): self.assertEqual(ccu.source(), "# cfile.py\n") def test_comparison(self): - acu = CodeUnit("aa/afile.py") - acu2 = CodeUnit("aa/afile.py") - zcu = CodeUnit("aa/zfile.py") - bcu = CodeUnit("aa/bb/bfile.py") + acu = FileReporter("aa/afile.py") + acu2 = FileReporter("aa/afile.py") + zcu = FileReporter("aa/zfile.py") + bcu = FileReporter("aa/bb/bfile.py") assert acu == acu2 and acu <= acu2 and acu >= acu2 assert acu < zcu and acu <= zcu and acu != zcu assert zcu > acu and zcu >= acu and zcu != acu |