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

Method test_box_from_empty_yaml

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

Source from the content-addressed store, hash-verified

1613 assert box4 == Box({"data": [{"a": 1}]}), box4
1614
1615 def test_box_from_empty_yaml(self):
1616 out = Box.from_yaml("---")
1617 assert out == Box()
1618
1619 out2 = BoxList.from_yaml("---")
1620 assert out2 == BoxList()
1621
1622 def test_setdefault_simple(self):
1623 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