def ensure_items_exist_and_are_deselected(append_assertion_data):
    """Ensure collections have the expected amount of items.

    Parameters
    ==========
    append_assertion_data (callable)
        Used to store the results of assertions.
    """
    ### confirm 1 text box exists

    ## grab the text blocks
    text_blocks = APP_REFS.gm.text_blocks

    ## 1 item in APP_REFS.gm.text_blocks

    append_assertion_data(

        (

            (
                "The loaded file must contain 1 object"
                " in APP_REFS.gm.text_blocks"
            ),

            len(text_blocks) == 1,

        )

    )

    ### confirm 8 nodes exist

    ## grab the nodes iterable
    nodes = APP_REFS.gm.nodes

    ## the "nodes" iterable must contain 8 items

    append_assertion_data(
        (
            "The loaded file must contain 8 items in APP_REFS.gm.nodes",
            len(nodes) == 8,
        )
    )

    ### confirm no objects are selected

    append_assertion_data(
        (
            "APP_REFS.ea.selected_objs must be empty (no selected objects)",
            len(APP_REFS.ea.selected_objs) == 0,
        )
    )
Ensure collections have the expected amount of items.

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