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