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