Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cdgriffith/Box
/ test_to_yaml_basic
Method
test_to_yaml_basic
test/test_box.py:249–252 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
247
assert data == test_dict
248
249
def
test_to_yaml_basic(self):
250
a = Box(test_dict)
251
yaml = YAML(typ=
"safe"
)
252
assert yaml.load(a.to_yaml()) == test_dict
253
254
def
test_to_yaml_file(self):
255
a = Box(test_dict)
Callers
nothing calls this directly
Calls
2
to_yaml
Method · 0.95
Box
Class · 0.90
Tested by
no test coverage detected