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