blob: 63ee20d091bd6538288b677ec52aa4506112d8fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)
|