def METHOD_NAME(self):
    resp = self.app.get(api.url_for(CalendarDatesExport, renderer='ics'))
    cal = Calendar.from_ical(resp.data)
    components = cal.subcomponents
    assert len(components) == 2
    assert str(components[0]['CATEGORIES']) == 'election'
    timezone = pytz.timezone('US/Eastern')
    assert components[0]['DTSTART'].dt == datetime.date(self.year, 10, 1)
    assert components[1]['DTSTART'].dt == timezone.localize(
        datetime.datetime(self.year, 10, 31, 2)
    )