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 | 4ce67933b19cd067046a55a8100f3a56881858ce (patch) | |
tree | 3aa0dca73477d6aa52ef7840e1b48635d611188c /tests/test_codeunit.py | |
parent | 64c7f2cb2959af7196182e6a745c8654d6cf6519 (diff) | |
download | python-coveragepy-4ce67933b19cd067046a55a8100f3a56881858ce.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 ea65d85..3b873cd 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 |