def METHOD_NAME(self, mocker):
    api_response = {"message": "error"}, 400
    mocker.patch(
        "pcluster.api.controllers.cluster_operations_controller.describe_cluster",
        return_value=api_response,
        autospec=True,
    )
    with pytest.raises(APIOperationException) as exc_info:
        command = ["describe-cluster", "--region", "eu-west-1", "--cluster-name", "name"]
        run(command)
    assert_that(exc_info.value.data).is_equal_to(api_response[0])