summaryrefslogtreecommitdiff
path: root/tests/test_backward.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-02-06 07:21:13 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-02-06 07:38:49 -0500
commit2e4b2977c78e254797d07c39e933fd535d4b0cec (patch)
tree568340a9837fabafee6a818db905d8ec15112d8d /tests/test_backward.py
parentb7160a896252bb92ffe921a37e3cde98c5cb78b9 (diff)
downloadpython-coveragepy-git-2e4b2977c78e254797d07c39e933fd535d4b0cec.tar.gz
refactor: remove unittest.assertCountEqual
Another step toward removing unittest.TestCase.
Diffstat (limited to 'tests/test_backward.py')
-rw-r--r--tests/test_backward.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test_backward.py b/tests/test_backward.py
index 767a7ac8..d750022b 100644
--- a/tests/test_backward.py
+++ b/tests/test_backward.py
@@ -3,16 +3,19 @@
"""Tests that our version shims in backward.py are working."""
-from coverage.backunittest import TestCase
+import unittest
+
from coverage.backward import iitems, binary_bytes, bytes_to_ints
-class BackwardTest(TestCase):
+from tests.helpers import assert_count_equal
+
+class BackwardTest(unittest.TestCase):
"""Tests of things from backward.py."""
def test_iitems(self):
d = {'a': 1, 'b': 2, 'c': 3}
items = [('a', 1), ('b', 2), ('c', 3)]
- self.assertCountEqual(list(iitems(d)), items)
+ assert_count_equal(list(iitems(d)), items)
def test_binary_bytes(self):
byte_values = [0, 255, 17, 23, 42, 57]