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

Method test_bad_inits

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

Source from the content-addressed store, hash-verified

216 assert a == b == c == d
217
218 def test_bad_inits(self):
219 with pytest.raises(ValueError):
220 Box("testing")
221
222 with pytest.raises(ValueError):
223 Box(22)
224
225 with pytest.raises(TypeError):
226 Box(22, 33)
227
228 def test_create_subdicts(self):
229 a = Box({"data": 2, "count": 5})

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected