def get_id(name):
    """
    Returns the id associated with the given name. Throws a ValueError if the given name is not John or Jane, for the
    sake of writing a unit test example involving an exception.

    :param name: The first name of the individual
    :return: Integer
    """
    if name == "John":
        return 123
    elif name == "Jane":
        return 456
    else:
        raise ValueError("my message")