()
| 28 | |
| 29 | |
| 30 | def test_path_attr() -> None: |
| 31 | path = AccessPath.root().attr("foo") |
| 32 | assert isinstance(path, AccessPath) |
| 33 | steps = path.to_steps() |
| 34 | assert len(steps) == 1 |
| 35 | assert steps[0].kind == AccessKind.ATTR |
| 36 | assert steps[0].key == "foo" |
| 37 | assert path.parent == AccessPath.root() |
| 38 | |
| 39 | |
| 40 | def test_path_array_item() -> None: |