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

Method test_empty

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

Source from the content-addressed store, hash-verified

26
27class TestTreeCreation:
28 def test_empty(self) -> None:
29 dt = DataTree(name="root")
30 assert dt.name == "root"
31 assert dt.parent is None
32 assert dt.children == {}
33 assert_identical(dt.to_dataset(), xr.Dataset())
34
35 def test_name(self) -> None:
36 dt = DataTree()

Callers

nothing calls this directly

Calls 3

to_datasetMethod · 0.95
DataTreeClass · 0.90
assert_identicalFunction · 0.90

Tested by

no test coverage detected