def METHOD_NAME(client):
    """
    Checks that we raise the correct error for these functions.
    """
    with pytest.raises(KeyError):
        client.get_closest_image("2012/01/01")
    with pytest.raises(KeyError):
        client.download_jp2("2012/01/01")