(self)
| 1325 | a |= BoxList() |
| 1326 | |
| 1327 | def test_ror_boxes(self): |
| 1328 | b = dict(c=1, d={"sub": 1}, e=1) |
| 1329 | c = Box(d={"val": 2}, e=4) |
| 1330 | assert c.__ror__(b) == Box(c=1, d={"val": 2}, e=4) |
| 1331 | assert c | b == Box(c=1, d={"sub": 1}, e=1) |
| 1332 | assert isinstance(b | c, Box) |
| 1333 | with pytest.raises(BoxError): |
| 1334 | BoxList() | Box() |
| 1335 | |
| 1336 | def test_type_recast(self): |
| 1337 | b = Box(id="6", box_recast={"id": int}) |