def perform_final_assertions(append_assertion_data):
    """Confirm all existing objects are selected.

    Parameters
    ==========
    append_assertion_data (callable)
        Used to store the results of assertions.
    """
    ### grab collection used to gather selected objs
    selected_objs = APP_REFS.ea.selected_objs

    ### confirm APP_REFS.ea.selected_objs holds 9 items

    append_assertion_data(

        (

            "APP_REFS.ea.selected_objs holds 9 items",
            len(selected_objs) == 9,

        )

    )


    ### confirm all text blocks (1) must be selected

    text_blocks = APP_REFS.gm.text_blocks

    append_assertion_data(

        (

            "Sole text box from APP_REFS.gm.text_blocks must be selected",

            (
                len(text_blocks) == 1
                and text_blocks[0] in selected_objs
            ),

        )

    )


    ### confirm all nodes (8) must be selected

    nodes = APP_REFS.gm.nodes

    append_assertion_data(

        (
            "Nodes from APP_REFS.gm.nodes (8) must be selected",
            (
                len(nodes) == 8
                and all(node in selected_objs for node in nodes)
            ),
        )

    )
Confirm all existing objects are selected.

    Parameters
    ==========
    append_assertion_data (callable)
        Used to store the results of assertions.
    
nodezator/systemtesting/testcases/stc0002.py