(self)
| 1062 | a |= BoxList() |
| 1063 | |
| 1064 | def test_ror_boxes(self): |
| 1065 | b = dict(c=1, d={"sub": 1}, e=1) |
| 1066 | c = Box(d={"val": 2}, e=4) |
| 1067 | assert c.__ror__(b) == Box(c=1, d={"val": 2}, e=4) |
| 1068 | assert c | b == Box(c=1, d={"sub": 1}, e=1) |
| 1069 | assert isinstance(b | c, Box) |
| 1070 | with pytest.raises(BoxError): |
| 1071 | BoxList() | Box() |
| 1072 | |
| 1073 | def test_type_recast(self): |
| 1074 | b = Box(id="6", box_recast={"id": int}) |