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

Method test_add_boxes

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

Source from the content-addressed store, hash-verified

1262 del c.really_a_thief
1263
1264 def test_add_boxes(self):
1265 b = Box(c=1, d={"sub": 1}, e=1)
1266 c = dict(d={"val": 2}, e=4)
1267 assert b + c == Box(c=1, d={"sub": 1, "val": 2}, e=4)
1268 with pytest.raises(BoxError):
1269 Box() + BoxList()
1270
1271 def test_add_frozen_boxes(self):
1272 b = Box(c=1, d={"sub": 1}, e=1, frozen_box=True)

Callers

nothing calls this directly

Calls 2

BoxClass · 0.90
BoxListClass · 0.90

Tested by

no test coverage detected