'When page_size parameter is invalid it should return to the default.'

def test_setting_page_size_to_zero(self):

    request = factory.get(u'/', {u'page_size': 0})
    response = self.view(request)
    assert (response.status_code == status.HTTP_200_OK)
    assert (response.data == {u'results': [2, 4, 6, 8, 10], u'previous': None, u'next': u'http://testserver/?page=2&page_size=0', u'count': 50})
