Module ImportFrom alias alias alias ImportFrom alias alias alias alias alias ImportFrom alias identifier Import alias FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad Str keyword NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assert CompareIs AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq AttributeLoad NameLoad attr Dict Str Str Str Str NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq Call NameLoad Call NameLoad NameLoad NameLoad Set AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Set AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq Call NameLoad Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Set AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq Call NameLoad Call NameLoad NameLoad NameLoad NameLoad Assert CompareEq Call NameLoad Call NameLoad NameLoad NameLoad Set AttributeLoad NameLoad attr Assign NameStore Set AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq Call NameLoad Call NameLoad NameLoad NameLoad NameLoad Assert CompareEq Call NameLoad Call NameLoad NameLoad NameLoad Call NameLoad Assert CompareEq Call NameLoad Call NameLoad Call NameLoad NameLoad NameLoad Num Assert CompareEq Call NameLoad Call NameLoad Call NameLoad NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call NameLoad NameLoad NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Assert CompareEq Call NameLoad Call NameLoad NameLoad NameLoad Call NameLoad Assert CompareEq Call NameLoad Call NameLoad NameLoad NameLoad Call NameLoad Assert CompareEq Call NameLoad Call NameLoad NameLoad NameLoad Call NameLoad Assert CompareEq Call NameLoad Call NameLoad NameLoad NameLoad Set AttributeLoad NameLoad attr Assert CompareEq Call NameLoad Call NameLoad NameLoad NameLoad Set AttributeLoad NameLoad attr Assert CompareEq Call NameLoad Call NameLoad NameLoad NameLoad Call NameLoad Assert CompareEq Call NameLoad Call NameLoad NameLoad NameLoad Call NameLoad Assert CompareEq Call NameLoad Call NameLoad NameLoad NameLoad Call NameLoad Assert CompareEq Call NameLoad Call NameLoad NameLoad NameLoad Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad Assert CompareEq Call NameLoad Call NameLoad NameLoad NameLoad Call NameLoad decorator_list
N/A libtree.core.tree change_parent delete_node insert_node libtree.core.query get_ancestor_ids get_child_ids get_children get_descendant_ids get_node pdb set_trace trace N/A pytest test_insert_root_node_with_auto_position N/A N/A cur N/A N/A N/A root N/A insert_node cur None folder auto_position True N/A N/A delete_node cur root N/A test_insert_node N/A N/A cur root nd1 nd2 nd2_1 nd2_1_1 nd3 N/A N/A N/A N/A N/A root parent None N/A N/A N/A nd1 parent N/A root id N/A N/A N/A nd2 parent N/A root id N/A N/A N/A nd2_1 parent N/A nd2 id N/A N/A N/A nd2_1_1 parent N/A nd2_1 id N/A N/A N/A nd3 parent N/A root id N/A test_insert_node_sets_properties N/A N/A root N/A N/A N/A N/A N/A root properties N/A type boolean integer root False 1 N/A test_insert_node_sets_position N/A N/A nd1 N/A N/A N/A N/A N/A nd1 position 4 N/A test_change_parent N/A N/A cur root nd1 nd2 nd2_1 nd2_1_1 nd2_leaf N/A N/A N/A 
    Tree layout before move:
    /
      - nd1
      - nd2
        - nd2-1
          - nd2-1-1
            - nd2-leaf
      - nd3

    Expected tree layout after move:

    /
      - nd1
        - nd2-1
          - nd2-1-1
            - nd2-leaf
      - nd2
      - nd3
     N/A _temp_node N/A change_parent cur N/A nd2_1 id nd1 auto_position False N/A N/A N/A _temp_node parent N/A nd1 id N/A node N/A get_node cur N/A nd2_1 id N/A N/A N/A node parent N/A nd1 id N/A child_node N/A get_node cur N/A nd2_1_1 id N/A N/A N/A child_node parent N/A nd2_1 id N/A child_node N/A get_node cur N/A nd2_leaf id N/A N/A N/A child_node parent N/A nd2_1_1 id N/A N/A N/A set N/A get_ancestor_ids cur nd2_1 N/A N/A root id N/A nd1 id N/A expected N/A N/A root id N/A nd1 id N/A nd2_1 id N/A N/A N/A set N/A get_ancestor_ids cur nd2_1_1 expected N/A expected N/A N/A root id N/A nd1 id N/A nd2_1 id N/A nd2_1_1 id N/A N/A N/A set N/A get_ancestor_ids cur nd2_leaf expected N/A N/A N/A set N/A get_ancestor_ids cur nd2 N/A N/A root id N/A expected N/A N/A nd2_1 id N/A nd2_1_1 id N/A nd2_leaf id N/A N/A N/A set N/A get_descendant_ids cur nd1 expected N/A N/A N/A set N/A get_descendant_ids cur nd2 N/A set N/A N/A N/A len N/A set N/A get_children cur nd1 1 N/A N/A N/A len N/A set N/A get_children cur nd2 0 N/A test_change_parent_dont_move_into_own_subtree N/A N/A cur nd1 nd2_1 N/A N/A N/A N/A N/A pytest raises ValueError N/A N/A N/A change_parent cur nd1 nd2_1 N/A test_delete_node N/A N/A cur nd1 nd2_1 nd2_1_1 nd2_leaf N/A N/A N/A 
        Tree layout before delete:
        /
          - nd1
            - nd2-1
              - nd2-1-1
                - nd2-leaf
          - nd2
          - nd3

        Expected tree layout after move:
        /
          - nd1
            - nd2-1
          - nd2
          - nd3
     N/A N/A delete_node cur nd2_1_1 auto_position False N/A N/A N/A pytest raises ValueError N/A N/A N/A get_node cur N/A nd2_1_1 id N/A N/A N/A set N/A get_child_ids cur nd2_1 N/A set N/A N/A N/A set N/A get_child_ids cur nd2_1_1 N/A set N/A N/A N/A set N/A get_descendant_ids cur nd2_1 N/A set N/A N/A N/A set N/A get_child_ids cur nd1 N/A N/A nd2_1 id N/A N/A N/A set N/A get_descendant_ids cur nd1 N/A N/A nd2_1 id N/A N/A N/A set N/A get_ancestor_ids cur nd2_1_1 N/A set N/A N/A N/A set N/A get_ancestor_ids cur nd2_leaf N/A set N/A N/A N/A set N/A get_descendant_ids cur nd2_1_1 N/A set N/A N/A N/A set N/A get_descendant_ids cur nd2_leaf N/A set N/A test_delete_node_by_id N/A N/A cur nd1 nd2_1 N/A N/A N/A N/A delete_node cur N/A nd2_1 id auto_position True N/A N/A N/A set N/A get_child_ids cur nd1 N/A set N/A