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

Method test_config

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

Source from the content-addressed store, hash-verified

657 hash(BoxList([1, 2, 3]))
658
659 def test_config(self):
660 bx = Box(extended_test_dict)
661 assert bx["_box_config"] is True
662 assert isinstance(bx._box_config, dict)
663 with pytest.raises(BoxError):
664 delattr(bx, "_box_config")
665 bx._box_config
666
667 def test_default_box(self):
668 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