()
| 314 | |
| 315 | |
| 316 | def test_nested_list_paths(): |
| 317 | item = StrictBox(values=[[{"value": 1}]], box_dots=True) |
| 318 | setattr(item, "values[0][0].value", 2) |
| 319 | assert item["values"][0][0].value == 2 |
| 320 | with pytest.raises(BoxKeyError): |
| 321 | setattr(item, "values[0][0].other", 3) |
| 322 | |
| 323 | |
| 324 | def test_intact_mapping_existing_key_never_runs_missing_factory(): |