(self)
| 123 | assert b.camel_case == 2 |
| 124 | |
| 125 | def test_operators_with_boxes(self): |
| 126 | assert (Box(a=1) + Box(b=2)).to_dict() == {"a": 1, "b": 2} |
| 127 | assert (Box(a=1) | Box(b=2)).to_dict() == {"a": 1, "b": 2} |
| 128 | |
| 129 | def test_subtract_nested_keeps_differences(self): |
| 130 | result = Box(a={"x": 1, "y": 2}, b=1) - Box(a={"x": 1}) |