MCPcopy Create free account
hub / github.com/drgrib/dotmap / test_fromkeys

Method test_fromkeys

dotmap/test.py:91–96  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 self.assertEqual(dm_copy.subD.d, 4)
90
91 def test_fromkeys(self):
92 m = DotMap.fromkeys([1, 2, 3], 'a')
93 self.assertEqual(len(m), 3)
94 self.assertEqual(m[1], 'a')
95 self.assertEqual(m[2], 'a')
96 self.assertEqual(m[3], 'a')
97
98 def test_dict_functionality(self):
99 m = DotMap(self.d)

Callers

nothing calls this directly

Calls 1

fromkeysMethod · 0.80

Tested by

no test coverage detected