MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_dict_coercion

Method test_dict_coercion

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

Source from the content-addressed store, hash-verified

222 self.assertFalse(d.called, '__getitem__ was called')
223
224 def test_dict_coercion(self):
225 d = ChainMap(dict(a=1, b=2), dict(b=20, c=30))
226 self.assertEqual(dict(d), dict(a=1, b=2, c=30))
227 self.assertEqual(dict(d.items()), dict(a=1, b=2, c=30))
228
229 def test_new_child(self):
230 '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