(self)
| 198 | assert cb.to_dict() == {"a": 2, 1: "one"} |
| 199 | |
| 200 | def test_missing_dotted_key(self): |
| 201 | cb = ConfigBox({"a": {"b": 1}}, box_dots=True) |
| 202 | assert "nope.x" not in cb |
| 203 | assert cb["A.B"] == 1 |
| 204 | |
| 205 | def test_index_rebuilds_after_direct_dict_write(self): |
| 206 | cb = ConfigBox({"a": 1}) |