MCPcopy Create free account
hub / github.com/pydata/xarray / test_lineage

Method test_lineage

xarray/tests/test_treenode.py:379–383  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

377 assert [node.name for node in leaf_f.parents] == expected
378
379 def test_lineage(self) -> None:
380 _, leaf_f = create_test_tree()
381 expected = ["f", "e", "b", "a"]
382 with pytest.warns(FutureWarning):
383 assert [node.name for node in leaf_f.lineage] == expected
384
385 def test_ancestors(self) -> None:
386 _, leaf_f = create_test_tree()

Callers

nothing calls this directly

Calls 1

create_test_treeFunction · 0.85

Tested by

no test coverage detected