def METHOD_NAME(self, target_type, name):
    # Keep all 3 of the objects in the tests, too that used to cause issue
    # https://github.com/astropy/astroquery/issues/2531
    response = mpc.MPC.query_object_async(target_type=target_type, name=name)
    assert response.status_code == requests.codes.ok
    assert len(response.json()) == 1
    assert response.json()[0]['name'].lower() == name