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

Method test_constructor

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

ChainMapClass · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected