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

Method test_protected_box_methods

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected