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

Method test_subtree

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

Source from the content-addressed store, hash-verified

391 assert node.name == expected_name
392
393 def test_subtree(self) -> None:
394 root, _ = create_test_tree()
395 expected = [
396 "a",
397 "b",
398 "c",
399 "d",
400 "e",
401 "h",
402 "f",
403 "g",
404 "i",
405 ]
406 actual = [node.name for node in root.subtree]
407 assert expected == actual
408
409 def test_subtree_with_keys(self) -> None:
410 root, _ = create_test_tree()

Callers

nothing calls this directly

Calls 1

create_test_treeFunction · 0.85

Tested by

no test coverage detected