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

Method test_get_from_root

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

Source from the content-addressed store, hash-verified

185 assert sue._get_item("../Kate") is kate
186
187 def test_get_from_root(self) -> None:
188 john: TreeNode = TreeNode(
189 children={"Mary": TreeNode(children={"Sue": TreeNode()})}
190 )
191 mary = john.children["Mary"]
192 sue = mary.children["Sue"]
193
194 assert sue._get_item("/Mary") is mary
195
196
197class TestSetNodes:

Callers

nothing calls this directly

Calls 2

TreeNodeClass · 0.90
_get_itemMethod · 0.80

Tested by

no test coverage detected