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

Method test_child_gets_named_on_attach

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

Source from the content-addressed store, hash-verified

118
119class TestNames:
120 def test_child_gets_named_on_attach(self) -> None:
121 sue = DataTree()
122 mary = DataTree(children={"Sue": sue})
123 assert mary.children["Sue"].name == "Sue"
124
125 def test_dataset_containing_slashes(self) -> None:
126 xda: xr.DataArray = xr.DataArray(

Callers

nothing calls this directly

Calls 1

DataTreeClass · 0.90

Tested by

no test coverage detected