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

Method test_box_from_empty_yaml

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

Source from the content-addressed store, hash-verified

1678 assert box4 == Box({"data": [{"a": 1}]}), box4
1679
1680 def test_box_from_empty_yaml(self):
1681 out = Box.from_yaml("---")
1682 assert out == Box()
1683
1684 out2 = BoxList.from_yaml("---")
1685 assert out2 == BoxList()
1686
1687 def test_setdefault_simple(self):
1688 box = Box({"a": 1})

Callers

nothing calls this directly

Calls 3

BoxClass · 0.90
BoxListClass · 0.90
from_yamlMethod · 0.45

Tested by

no test coverage detected