def METHOD_NAME(test_data):
    """
    Test for adding a cluster
    """
    exp_cmd = ["pcs", "cluster", "node", "add"]
    exp_cmd = exp_cmd + [test_data.nodea] + test_data.extra_args
    mock_cmd = MagicMock()
    patch_salt = patch.dict(pcs.__salt__, {"cmd.run_all": mock_cmd})
    with patch_salt:
        pcs.cluster_node_add(test_data.nodea, extra_args=test_data.extra_args)
    assert mock_cmd.call_args_list[0][0][0] == exp_cmd