MCPcopy Index your code
hub / github.com/python/cpython / test_items

Method test_items

Lib/test/mapping_tests.py:340–344  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

338 self.assertEqual(list(d.values()), [2])
339
340 def test_items(self):
341 BasicTestMappingProtocol.test_items(self)
342
343 d = self._full_mapping({1:2})
344 self.assertEqual(list(d.items()), [(1, 2)])
345
346 def test_contains(self):
347 d = self._empty_mapping()

Callers

nothing calls this directly

Calls 4

listClass · 0.85
_full_mappingMethod · 0.45
assertEqualMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected