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

Method test_len

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

Source from the content-addressed store, hash-verified

356 self.assertRaises(TypeError, d.__contains__)
357
358 def test_len(self):
359 BasicTestMappingProtocol.test_len(self)
360 d = self._full_mapping({'a': 1, 'b': 2})
361 self.assertEqual(len(d), 2)
362
363 def test_getitem(self):
364 BasicTestMappingProtocol.test_getitem(self)

Callers

nothing calls this directly

Calls 2

_full_mappingMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected