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

Method test_from_yaml

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

Source from the content-addressed store, hash-verified

496 assert bx.key1 == "value1"
497
498 def test_from_yaml(self):
499 yaml = YAML(typ="safe")
500 with StringIO() as sio:
501 yaml.dump(test_dict, sio)
502 data = sio.getvalue()
503 bx = Box.from_yaml(data, conversion_box=False, default_box=True)
504 assert isinstance(bx, Box)
505 assert bx.key1 == "value1"
506 assert bx.Key_2 == Box()
507
508 def test_from_yaml_box_dots_dotted_key_before_non_dotted(self):
509 """

Callers

nothing calls this directly

Calls 2

BoxClass · 0.90
from_yamlMethod · 0.45

Tested by

no test coverage detected