summaryrefslogtreecommitdiff
path: root/tests/test_backward.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_backward.py')
-rw-r--r--tests/test_backward.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_backward.py b/tests/test_backward.py
new file mode 100644
index 00000000..63ee20d0
--- /dev/null
+++ b/tests/test_backward.py
@@ -0,0 +1,16 @@
+# -*- coding: utf-8 -*-
+"""Tests that our version shims in backward.py are working."""
+
+from coverage.backward import iitems
+from tests.backunittest import TestCase
+
+
+class BackwardTest(TestCase):
+ """Tests of things from backward.py."""
+
+ run_in_temp_dir = False
+
+ def test_iitems(self):
+ d = {'a': 1, 'b': 2, 'c': 3}
+ items = [('a', 1), ('b', 2), ('c', 3)]
+ self.assertSameElements(list(iitems(d)), items)