def test_invalid_items_per_page_gives_default_pagination(self):

        events_url = reverse('all_events')
        events_url += '?items_per_page=not_an_integer'
        response = self.client.get(events_url)

        # View should be paginated by default, so we shouldn't get all events
        view_events = response.context['all_events']

        assert len(view_events) < 50
dataset/ETHPy150Open swcarpentry/amy/workshops/test/test_event.py/TestEventViews.test_invalid_items_per_page_gives_default_pagination/original