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

Method test_set_default_dict

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

Source from the content-addressed store, hash-verified

430 assert a.b.b == 4
431
432 def test_set_default_dict(self):
433 a = Box(test_dict)
434 new = a.setdefault("key3", {})
435 new.yy = 8
436 assert a.key3.yy == 8
437
438 def test_set_default(self):
439 a = Box(test_dict)

Callers

nothing calls this directly

Calls 2

setdefaultMethod · 0.95
BoxClass · 0.90

Tested by

no test coverage detected