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

Method test_path_roundtrip

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

Source from the content-addressed store, hash-verified

151 assert john.path == "/"
152
153 def test_path_roundtrip(self) -> None:
154 john = DataTree.from_dict(
155 {
156 "/Mary/Sue": DataTree(),
157 }
158 )
159 assert john["/Mary/Sue"].name == "Sue"
160
161 def test_same_tree(self) -> None:
162 john = DataTree.from_dict(

Callers

nothing calls this directly

Calls 2

DataTreeClass · 0.90
from_dictMethod · 0.45

Tested by

no test coverage detected