(self)
| 89 | assert kate.parent is john |
| 90 | |
| 91 | def test_disown_child(self) -> None: |
| 92 | john: TreeNode = TreeNode(children={"Mary": TreeNode()}) |
| 93 | mary = john.children["Mary"] |
| 94 | mary.orphan() |
| 95 | assert mary.parent is None |
| 96 | assert "Mary" not in john.children |
| 97 | |
| 98 | def test_doppelganger_child(self) -> None: |
| 99 | kate: TreeNode = TreeNode() |