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

Method test_constructor

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

Source from the content-addressed store, hash-verified

162 self.assertEqual(list(combined.items()), list(cm.items()))
163
164 def test_constructor(self):
165 self.assertEqual(ChainMap().maps, [{}]) # no-args --> one new dict
166 self.assertEqual(ChainMap({1:2}).maps, [{1:2}]) # 1 arg --> list
167
168 def test_bool(self):
169 self.assertFalse(ChainMap())

Callers

nothing calls this directly

Calls 2

ChainMapClass · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected