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

Method test_len

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

Source from the content-addressed store, hash-verified

115 self.assertRaises(TypeError, d.items, None)
116
117 def test_len(self):
118 d = self._empty_mapping()
119 self.assertEqual(len(d), 0)
120
121 def test_getitem(self):
122 d = self.reference

Callers

nothing calls this directly

Calls 2

_empty_mappingMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected