          request = factory.get('/')
          response = self.view(request).render()
          self.assertEquals(response.data, self.data)
  
      def test_default_page_size_kwarg(self):
          """
          If page_size_kwarg is set not set, the default page_size kwarg should limit per view requests.
          """
          request = factory.get('/?page_size=5')
          response = self.view(request).render()
          self.assertEquals(response.data['count'], 13)
          self.assertEquals(response.data['results'], self.data[:5])
  
  
  class TestCustomPageSizeKwarg(TestCase):
      """
      Tests for list views with default page size kwarg
      """
 
</s> remove         self.assertEquals(response.data, self.data)

    def test_custom_page_size_kwarg(self):
        """
        If page_size_kwarg is set set, the new kwarg should limit per view requests.
        """
        request = factory.get('/?ps=5')
        response = self.view(request).render()
 </s> add  </s> remove         response = self.view(request).render()
 </s> add         response = self.view(request) </s> remove         If page_size_kwarg is set set, the default page_size kwarg should not work.
 </s> add         If paginate_by_param is set, the new kwarg should limit per view requests. </s> remove     def test_disabled_default_page_size_kwarg(self):
 </s> add     def test_paginate_by_param(self): </s> remove 

class TestNonePageSizeKwarg(TestCase):
    """
    Tests for list views with default page size kwarg
    """

    def setUp(self):
        """
        Create 13 BasicModel instances.
        """
        for i in range(13):
            BasicModel(text=i).save()
        self.objects = BasicModel.objects
        self.data = [
        {'id': obj.id, 'text': obj.text}
        for obj in self.objects.all()
        ]
        self.view = NonePageSizeKwargView.as_view()

    def test_default_page_size(self):
        """
        Tests the default page size for this view.
        no page size --> no limit --> no meta data
        """
        request = factory.get('/')
        response = self.view(request).render()
        self.assertEquals(response.data, self.data)

    def test_none_page_size_kwarg(self):
        """
        If page_size_kwarg is set to None, custom page_size per request should be disabled.
        """
        request = factory.get('/?page_size=5')
        response = self.view(request).render()
        self.assertEquals(response.data, self.data)
 </s> add 
          request = factory.get('/')
          response = self.view(request).render()
          self.assertEquals(response.data, self.data)
  









  
  class TestCustomPageSizeKwarg(TestCase):
      """
      Tests for list views with default page size kwarg
      """
keep keep keep keep replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 Polishing to page size query parameters & more docs 
rest_framework/tests/pagination.py