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

Method test_automatic_hierarchy

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

Source from the content-addressed store, hash-verified

17 self.assertEqual(m.name, 'Joe Smith Jr')
18
19 def test_automatic_hierarchy(self):
20 m = DotMap()
21 m.people.steve.age = 31
22 self.assertEqual(m.people.steve.age, 31)
23
24 def test_key_init(self):
25 m = DotMap(a=1, b=2)

Callers

nothing calls this directly

Calls 1

DotMapClass · 0.90

Tested by

no test coverage detected