MCPcopy Index your code
hub / github.com/pydata/xarray / test_path_property

Method test_path_property

xarray/tests/test_datatree.py:144–151  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

142
143class 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(

Callers

nothing calls this directly

Calls 2

DataTreeClass · 0.90
from_dictMethod · 0.45

Tested by

no test coverage detected