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

Class TestBoxListPaths

test/test_coverage_paths.py:158–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156
157
158class TestBoxListPaths:
159 def test_tuple_indexing_into_non_list(self):
160 bl = BoxList([[1, 2], {"a": 1}])
161 assert bl[0, 1] == 2
162 with pytest.raises(BoxTypeError, match="numpy-style"):
163 bl[1, 0]
164
165 def test_dotted_delete_into_non_container(self):
166 bl = BoxList([5], box_dots=True)
167 with pytest.raises(TypeError):
168 del bl["[0].x"]
169 assert bl == [5]
170
171
172class TestBoxListPickleFormats:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected