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

Method test_protected_box_methods

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

Source from the content-addressed store, hash-verified

196 assert a == b == c == d == e
197
198 def test_protected_box_methods(self):
199 my_box = Box(a=3)
200 with pytest.raises(AttributeError):
201 my_box.to_dict = "test"
202
203 with pytest.raises(AttributeError):
204 del my_box.to_json
205
206 def test_bad_args(self):
207 with pytest.raises(TypeError):

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected