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

Method test_add_two_boxlists

test/test_box_list.py:816–819  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

814 assert result.box_options["box_dots"] is True
815
816 def test_add_two_boxlists(self):
817 result = BoxList([{"a": 1}]) + BoxList([{"b": 2}])
818 assert isinstance(result, BoxList)
819 assert result.to_list() == [{"a": 1}, {"b": 2}]
820
821 def test_add_non_list_raises(self):
822 with pytest.raises(BoxTypeError):

Callers

nothing calls this directly

Calls 2

BoxListClass · 0.90
to_listMethod · 0.80

Tested by

no test coverage detected