def METHOD_NAME(self):
    resp = self.app.get(api.url_for(CalendarDatesExport, renderer='csv'))
    sio = io.StringIO(resp.data.decode())
    reader = csv.DictReader(sio)
    rows = list(reader)
    assert len(rows) == len(self.dates)
    assert set(rows[0].keys()) == set(
        ['summary', 'description', 'location', 'start_date', 'end_date', 'category']
    )