

def test_get_upcoming_events(self):
    'Test that the events manager can find upcoming events'
    upcoming_events = Event.objects.upcoming_events()
    expected = Event.objects.filter(slug__endswith='upcoming')
    upcoming_events.assertEqual(set(upcoming_events), set(expected))

dataset/ETHPy150Open swcarpentry/amy/workshops/test/test_event.py TestEvent.test_get_upcoming_events/VarMisuse@35/73 `self`->`upcoming_events`