(self)
| 133 | self.assertEqual([n.title for n in path], ["Root"]) |
| 134 | |
| 135 | def test_find_path_leaf(self): |
| 136 | tree = _make_tree() |
| 137 | # Find a1 from the tree's flat node map. |
| 138 | a1 = next(n for n in tree.nodes.values() if n.title == "A1") |
| 139 | path = tree.find_path(a1.node_id) |
| 140 | self.assertEqual([n.title for n in path], ["Root", "A", "A1"]) |
| 141 | |
| 142 | def test_find_path_unknown(self): |
| 143 | tree = _make_tree() |
nothing calls this directly
no test coverage detected