Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cdgriffith/Box
/ test_box_from_dict
Method
test_box_from_dict
test/test_box.py:144–146 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
142
getattr(bx,
"hello"
)
143
144
def
test_box_from_dict(self):
145
ns = Box({
"k1"
:
"v1"
,
"k2"
: {
"k3"
:
"v2"
}})
146
assert ns.k2.k3 ==
"v2"
147
148
def
test_box_from_bad_dict(self):
149
with
pytest.raises(ValueError):
Callers
nothing calls this directly
Calls
1
Box
Class · 0.90
Tested by
no test coverage detected