(self)
| 81 | assert b.to_dict() == {"new": {"key": 1}} |
| 82 | |
| 83 | def test_dotted_set_without_parent(self): |
| 84 | with pytest.raises(BoxKeyError, match="has no attribute a"): |
| 85 | Box(box_dots=True)["a.b"] = 1 |
| 86 | |
| 87 | def test_dotted_paths_through_non_containers(self): |
| 88 | b = Box({"a": 5}, box_dots=True) |