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

Method test_dict_init

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

Source from the content-addressed store, hash-verified

70 }
71
72 def test_dict_init(self):
73 m = DotMap(self.d)
74 self.assertIsInstance(m, DotMap)
75 self.assertEqual(m.a, 1)
76 self.assertEqual(m.b, 2)
77 self.assertIsInstance(m.subD, DotMap)
78 self.assertEqual(m.subD.c, 3)
79 self.assertEqual(m.subD.d, 4)
80
81 def test_copy(self):
82 m = DotMap(self.d)

Callers

nothing calls this directly

Calls 1

DotMapClass · 0.90

Tested by

no test coverage detected