Exemple #1
0
def test_tree_rename():
    """
    Ensures Tree.rename can rename the current tree
    """
    tree = Tree('tree', [])
    tree.rename('new')
    assert tree.data == 'new'
Exemple #2
0
def test_tree_rename():
    """
    Ensures Tree.rename can rename the current tree
    """
    tree = Tree("tree", [])
    tree.rename("new")
    assert tree.data == "new"