def are_consecutive(dates):
    """
    returns True, iff dates are consecutive.

    Parameters
    ----------
    dates : list of datetime.date
        a list of dates
    """
    date_ints = set([d.toordinal() for d in dates])
    if max(date_ints) - min(date_ints) == len(date_ints) - 1:
        return True
    else:
        return False