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

Method test_items

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

Source from the content-addressed store, hash-verified

109 self.assertRaises(TypeError, d.values, None)
110
111 def test_items(self):
112 d = self._empty_mapping()
113 self.assertEqual(list(d.items()), [])
114
115 self.assertRaises(TypeError, d.items, None)
116
117 def test_len(self):
118 d = self._empty_mapping()

Callers

nothing calls this directly

Calls 5

_empty_mappingMethod · 0.95
listClass · 0.85
assertEqualMethod · 0.45
itemsMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected