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

Method test_get_box_config

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

Source from the content-addressed store, hash-verified

1124 assert bx[1] == 2
1125
1126 def test_get_box_config(self):
1127 bx = Box()
1128 bx_config = bx.__getattr__("_box_config")
1129 assert bx_config
1130 with pytest.raises(BoxKeyError):
1131 bx["_box_config"]
1132
1133 def test_pop(self):
1134 bx = Box(a=4, c={"d": 3}, sub_box=Box(test=1))

Callers

nothing calls this directly

Calls 2

__getattr__Method · 0.95
BoxClass · 0.90

Tested by

no test coverage detected