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

Method test_levels

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

Source from the content-addressed store, hash-verified

465 assert node.name == expected_name
466
467 def test_levels(self) -> None:
468 a, f = create_test_tree()
469
470 assert a.level == 0
471 assert f.level == 3
472
473 assert a.depth == 3
474 assert f.depth == 3
475
476 assert a.width == 1
477 assert f.width == 3
478
479
480class TestRenderTree:

Callers

nothing calls this directly

Calls 1

create_test_treeFunction · 0.85

Tested by

no test coverage detected