def test_get_upcoming_events(self):

        upcoming_events = Event.objects.upcoming_events()
        expected = Event.objects.filter(slug__endswith='upcoming')
        self.assertEqual(set(upcoming_events), set(expected))
Test that the events manager can find upcoming events
dataset/ETHPy150Open swcarpentry/amy/workshops/test/test_event.py/TestEvent.test_get_upcoming_events