diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2015-06-14 09:41:01 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-06-14 09:41:01 -0400 |
| commit | 910c9db116f250fd1b26408e1d1eb52c4f3e2f0a (patch) | |
| tree | 130a4dc479ec256a28f34974fa46580d0fc7198c /tests | |
| parent | 4dc7c52ffa20e9b8444f61092950618066f1a736 (diff) | |
| download | python-coveragepy-git-910c9db116f250fd1b26408e1d1eb52c4f3e2f0a.tar.gz | |
Debugging plugin wrappers
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_filereporter.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/test_filereporter.py b/tests/test_filereporter.py index 9db4c0c3..045081cf 100644 --- a/tests/test_filereporter.py +++ b/tests/test_filereporter.py @@ -32,9 +32,9 @@ class FileReporterTest(CoverageTest): acu = PythonFileReporter("aa/afile.py") bcu = PythonFileReporter("aa/bb/bfile.py") ccu = PythonFileReporter("aa/bb/cc/cfile.py") - self.assertEqual(acu.name, "aa/afile.py") - self.assertEqual(bcu.name, "aa/bb/bfile.py") - self.assertEqual(ccu.name, "aa/bb/cc/cfile.py") + self.assertEqual(acu.relative_filename(), "aa/afile.py") + self.assertEqual(bcu.relative_filename(), "aa/bb/bfile.py") + self.assertEqual(ccu.relative_filename(), "aa/bb/cc/cfile.py") self.assertEqual(acu.flat_rootname(), "aa_afile_py") self.assertEqual(bcu.flat_rootname(), "aa_bb_bfile_py") self.assertEqual(ccu.flat_rootname(), "aa_bb_cc_cfile_py") @@ -46,9 +46,9 @@ class FileReporterTest(CoverageTest): acu = PythonFileReporter("aa/afile.odd.py") bcu = PythonFileReporter("aa/bb/bfile.odd.py") b2cu = PythonFileReporter("aa/bb.odd/bfile.py") - self.assertEqual(acu.name, "aa/afile.odd.py") - self.assertEqual(bcu.name, "aa/bb/bfile.odd.py") - self.assertEqual(b2cu.name, "aa/bb.odd/bfile.py") + self.assertEqual(acu.relative_filename(), "aa/afile.odd.py") + self.assertEqual(bcu.relative_filename(), "aa/bb/bfile.odd.py") + self.assertEqual(b2cu.relative_filename(), "aa/bb.odd/bfile.py") self.assertEqual(acu.flat_rootname(), "aa_afile_odd_py") self.assertEqual(bcu.flat_rootname(), "aa_bb_bfile_odd_py") self.assertEqual(b2cu.flat_rootname(), "aa_bb_odd_bfile_py") @@ -64,9 +64,9 @@ class FileReporterTest(CoverageTest): acu = PythonFileReporter(aa) bcu = PythonFileReporter(aa.bb) ccu = PythonFileReporter(aa.bb.cc) - self.assertEqual(acu.name, native("aa.py")) - self.assertEqual(bcu.name, native("aa/bb.py")) - self.assertEqual(ccu.name, native("aa/bb/cc.py")) + self.assertEqual(acu.relative_filename(), native("aa.py")) + self.assertEqual(bcu.relative_filename(), native("aa/bb.py")) + self.assertEqual(ccu.relative_filename(), native("aa/bb/cc.py")) self.assertEqual(acu.flat_rootname(), "aa_py") self.assertEqual(bcu.flat_rootname(), "aa_bb_py") self.assertEqual(ccu.flat_rootname(), "aa_bb_cc_py") @@ -82,9 +82,9 @@ class FileReporterTest(CoverageTest): acu = PythonFileReporter(aa.afile) bcu = PythonFileReporter(aa.bb.bfile) ccu = PythonFileReporter(aa.bb.cc.cfile) - self.assertEqual(acu.name, native("aa/afile.py")) - self.assertEqual(bcu.name, native("aa/bb/bfile.py")) - self.assertEqual(ccu.name, native("aa/bb/cc/cfile.py")) + self.assertEqual(acu.relative_filename(), native("aa/afile.py")) + self.assertEqual(bcu.relative_filename(), native("aa/bb/bfile.py")) + self.assertEqual(ccu.relative_filename(), native("aa/bb/cc/cfile.py")) self.assertEqual(acu.flat_rootname(), "aa_afile_py") self.assertEqual(bcu.flat_rootname(), "aa_bb_bfile_py") self.assertEqual(ccu.flat_rootname(), "aa_bb_cc_cfile_py") |
