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

Method test_box_from_dict

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

Source from the content-addressed store, hash-verified

179 getattr(bx, "hello")
180
181 def test_box_from_dict(self):
182 ns = Box({"k1": "v1", "k2": {"k3": "v2"}})
183 assert ns.k2.k3 == "v2"
184
185 def test_box_from_bad_dict(self):
186 with pytest.raises(ValueError):

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected