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

Method test_error_box

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected