

def test_get_past_events(self):
    'Test that the events manager can find past events'
    past_events = Event.objects.past_events()
    assert (len(past_events) == 9)
    assert all([('past' in e.slug) for e in past_events])

dataset/ETHPy150Open swcarpentry/amy/workshops/test/test_event.py TestEvent.test_get_past_events/original