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

Method test

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

Source from the content-addressed store, hash-verified

156
157class TestEmpty(unittest.TestCase):
158 def test(self):
159 m = DotMap()
160 self.assertTrue(m.empty())
161 m.a = 1
162 self.assertFalse(m.empty())
163 self.assertTrue(m.b.empty())
164 self.assertIsInstance(m.b, DotMap)
165
166
167class TestDynamic(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.95
DotMapClass · 0.90

Tested by

no test coverage detected