

def test_get_ongoing_events(self):
    'Test the events manager can find all events overlapping today.\n\n        Include events that (according to the timestamp) are not ongoing,\n        but which started or finished today.\n        '
    ongoing_events = Event.objects.ongoing_events()
    event_slugs = [e.slug for e in ongoing_events]
    correct_slugs = ['ends-tomorrow-ongoing', 'ends-today-ongoing']
    event_slugs.assertCountEqual(event_slugs, correct_slugs)

dataset/ETHPy150Open swcarpentry/amy/workshops/test/test_event.py TestEvent.test_get_ongoing_events/VarMisuse@42/149 `self`->`event_slugs`