MCPcopy Create free account
hub / github.com/cdgriffith/Box / test_set_default_dict

Method test_set_default_dict

test/test_box.py:305–309  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

303 assert a.b.b == 4
304
305 def test_set_default_dict(self):
306 a = Box(test_dict)
307 new = a.setdefault("key3", {})
308 new.yy = 8
309 assert a.key3.yy == 8
310
311 def test_set_default(self):
312 a = Box(test_dict)

Callers

nothing calls this directly

Calls 2

setdefaultMethod · 0.95
BoxClass · 0.90

Tested by

no test coverage detected