diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-20 10:26:27 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-20 10:26:27 -0400 |
commit | 01e4a481e5e501fc101dec58853d36d0c2e5e354 (patch) | |
tree | d3b6f629be761ebc7031c3a164b6c3f8bb4d8362 /tests/test_testing.py | |
parent | a4456410629389e46c15f5f5057ff2e8df35e79b (diff) | |
download | python-coveragepy-git-01e4a481e5e501fc101dec58853d36d0c2e5e354.tar.gz |
Test arcz_to_arcs directly.
Diffstat (limited to 'tests/test_testing.py')
-rw-r--r-- | tests/test_testing.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_testing.py b/tests/test_testing.py index 08ff257d..29599442 100644 --- a/tests/test_testing.py +++ b/tests/test_testing.py @@ -63,6 +63,11 @@ class TempDirMixinTest(TempDirMixin, TestCase): class CoverageTestTest(CoverageTest): """Test the methods in `CoverageTest`.""" + def test_arcz_to_arcs(self): + self.assertEqual(self.arcz_to_arcs(".1 12 2."), [(-1, 1), (1, 2), (2, -1)]) + self.assertEqual(self.arcz_to_arcs("-11 12 2-5"), [(-1, 1), (1, 2), (2, -5)]) + self.assertEqual(self.arcz_to_arcs("-QA CB IT Z-A"), [(-26, 10), (12, 11), (18, 29), (35, -10)]) + def test_file_exists(self): self.make_file("whoville.txt", "We are here!") self.assert_exists("whoville.txt") |