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

Method test_set_default_dict

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

Source from the content-addressed store, hash-verified

381 assert a.b.b == 4
382
383 def test_set_default_dict(self):
384 a = Box(test_dict)
385 new = a.setdefault("key3", {})
386 new.yy = 8
387 assert a.key3.yy == 8
388
389 def test_set_default(self):
390 a = Box(test_dict)

Callers

nothing calls this directly

Calls 2

setdefaultMethod · 0.95
BoxClass · 0.90

Tested by

no test coverage detected