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

Method test_dict_coercion

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

Source from the content-addressed store, hash-verified

223 self.assertFalse(d.called, '__getitem__ was called')
224
225 def test_dict_coercion(self):
226 d = ChainMap(dict(a=1, b=2), dict(b=20, c=30))
227 self.assertEqual(dict(d), dict(a=1, b=2, c=30))
228 self.assertEqual(dict(d.items()), dict(a=1, b=2, c=30))
229
230 def test_new_child(self):
231 'Tests for changes for issue #16613.'

Callers

nothing calls this directly

Calls 3

ChainMapClass · 0.90
assertEqualMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected