(self)
| 142 | |
| 143 | class TestPaths: |
| 144 | def test_path_property(self) -> None: |
| 145 | john = DataTree.from_dict( |
| 146 | { |
| 147 | "/Mary/Sue": DataTree(), |
| 148 | } |
| 149 | ) |
| 150 | assert john["/Mary/Sue"].path == "/Mary/Sue" |
| 151 | assert john.path == "/" |
| 152 | |
| 153 | def test_path_roundtrip(self) -> None: |
| 154 | john = DataTree.from_dict( |