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

Method test_MutableMapping

Lib/test/test_collections.py:1858–1863  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1856 self.assertRaises(TypeError, reversed, MyMapping())
1857
1858 def test_MutableMapping(self):
1859 for sample in [dict]:
1860 self.assertIsInstance(sample(), MutableMapping)
1861 self.assertIsSubclass(sample, MutableMapping)
1862 self.validate_abstract_methods(MutableMapping, '__iter__', '__len__',
1863 '__getitem__', '__setitem__', '__delitem__')
1864
1865 def test_MutableMapping_subclass(self):
1866 # Test issue 9214

Callers

nothing calls this directly

Calls 4

sampleFunction · 0.85
assertIsInstanceMethod · 0.80
assertIsSubclassMethod · 0.80

Tested by

no test coverage detected