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

Method test_error_box

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

Source from the content-addressed store, hash-verified

175 assert "key1" not in bx
176
177 def test_error_box(self):
178 bx = Box(**test_dict)
179 with pytest.raises(AttributeError):
180 getattr(bx, "hello")
181
182 def test_box_from_dict(self):
183 ns = Box({"k1": "v1", "k2": {"k3": "v2"}})

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected