def test_get_past_events(self):

        past_events = Event.objects.past_events()

        assert len(past_events) == 9

        # They should all start with past
        assert all(['past' in e.slug for e in past_events])
Overrides behavior of FormView.get_form_kwargs
dataset/ETHPy150Open swcarpentry/amy/workshops/test/test_event.py/TestEvent.test_get_past_events--crossover with--dataset/ETHPy150Open pinax/pinax-teams/pinax/teams/views.py/TeamInviteView.get_unbound_form