(self)
| 1390 | a |= BoxList() |
| 1391 | |
| 1392 | def test_ror_boxes(self): |
| 1393 | b = dict(c=1, d={"sub": 1}, e=1) |
| 1394 | c = Box(d={"val": 2}, e=4) |
| 1395 | assert c.__ror__(b) == Box(c=1, d={"val": 2}, e=4) |
| 1396 | assert c | b == Box(c=1, d={"sub": 1}, e=1) |
| 1397 | assert isinstance(b | c, Box) |
| 1398 | with pytest.raises(BoxError): |
| 1399 | BoxList() | Box() |
| 1400 | |
| 1401 | def test_type_recast(self): |
| 1402 | b = Box(id="6", box_recast={"id": int}) |