def METHOD_NAME(test_data):
    """
    Test for checking it nodes are authorised.
    """
    exp_cmd = [
        "pcs",
        "host",
        "auth",
        "-u",
        test_data.username,
        "-p",
        test_data.password,
    ]
    exp_cmd.extend(test_data.nodes)
    mock_cmd = MagicMock()
    patch_salt = patch.dict(
        pcs.__salt__,
        {"cmd.run_all": mock_cmd, "pkg.version_cmp": MagicMock(return_value=1)},
    )
    with patch_salt:
        pcs.is_auth(
            test_data.nodes, pcsuser=test_data.username, pcspasswd=test_data.password
        )
    assert mock_cmd.call_args_list[0][0][0] == exp_cmd