

def test_events_view_paginated(self):
    events_url = reverse('all_events')
    events_url += '?items_per_page=10'
    response = self.client.get(events_url)
    view_events = response.context['all_events']
    assert (len(view_events) == 10)

dataset/ETHPy150Open swcarpentry/amy/workshops/test/test_event.py TestEventViews.test_events_view_paginated/original