def test_tree_replace(): tree = Tree('tree', ['old']) tree.replace(0, 'new') assert tree.children == ['new']
def test_tree_replace(): tree = Tree("tree", ["old"]) tree.replace(0, "new") assert tree.children == ["new"]