'When page_size parameter exceeds maximum allowable,
then it should be capped to the maximum.'

def test_setting_page_size_over_maximum(self):

    request = factory.get(u'/', {u'page_size': 1000})
    response = self.view(request)
    assert (response.status_code == status.HTTP_200_OK)
    assert (response.data == {u'results': [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40], u'previous': None, u'next': u'http://testserver/?page=2&page_size=1000', u'count': 50})
