def METHOD_NAME(self):
    date_range = DateRange(datetime.date(2011, 9, 28), datetime.date(2011, 9, 29))
    try:
        date_range.end_date = datetime.date(2011, 9, 30)
    except(AttributeError):
        pass
    else:
        self.fail()