(self)
| 55 | assert detached.name == "bar" |
| 56 | |
| 57 | def test_bad_names(self) -> None: |
| 58 | with pytest.raises(TypeError): |
| 59 | DataTree(name=5) # type: ignore[arg-type] |
| 60 | |
| 61 | with pytest.raises(ValueError): |
| 62 | DataTree(name="folder/data") |
| 63 | |
| 64 | def test_data_arg(self) -> None: |
| 65 | ds = xr.Dataset({"foo": 42}) |