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

Method test_add_boxes

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

Source from the content-addressed store, hash-verified

1327 del c.really_a_thief
1328
1329 def test_add_boxes(self):
1330 b = Box(c=1, d={"sub": 1}, e=1)
1331 c = dict(d={"val": 2}, e=4)
1332 assert b + c == Box(c=1, d={"sub": 1, "val": 2}, e=4)
1333 with pytest.raises(BoxError):
1334 Box() + BoxList()
1335
1336 def test_add_frozen_boxes(self):
1337 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