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

Method test_config

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

Source from the content-addressed store, hash-verified

608 hash(BoxList([1, 2, 3]))
609
610 def test_config(self):
611 bx = Box(extended_test_dict)
612 assert bx["_box_config"] is True
613 assert isinstance(bx._box_config, dict)
614 with pytest.raises(BoxError):
615 delattr(bx, "_box_config")
616 bx._box_config
617
618 def test_default_box(self):
619 bx = Box(test_dict, default_box=True, default_box_attr={"hi": "there"})

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected