          self.view = MaxPaginateByView.as_view()
  
      def test_max_paginate_by(self):
          """
          If max_paginate_by is set and it less than paginate_by, new kwarg should limit requests for review.
          """
          request = factory.get('/?page_size=10')
          response = self.view(request).render()
          self.assertEqual(response.data['count'], 13)
          self.assertEqual(response.data['results'], self.data[:3])
 
</s> remove         self.assertEqual(response.data['results'], self.data[:3])
 </s> add         self.assertEqual(response.data['results'], self.data[:5]) </s> remove         If max_paginate_by is set, new kwarg should limit requests for review.
 </s> add         If max_paginate_by is set, but client does not specifiy page_size,
        standard `paginate_by` behavior should be used. </s> remove     paginate_by = 5
    max_paginate_by = 3
 </s> add     paginate_by = 3
    max_paginate_by = 5 </s> remove def strict_positive_int(integer_string):
 </s> add def strict_positive_int(integer_string, cutoff=None):
        If max_paginate_by is set, it should limit page size for the view.
          self.view = MaxPaginateByView.as_view()
  
      def test_max_paginate_by(self):
          """
        If max_paginate_by is set, it should limit page size for the view.
          """
          request = factory.get('/?page_size=10')
          response = self.view(request).render()
          self.assertEqual(response.data['count'], 13)
          self.assertEqual(response.data['results'], self.data[:3])
keep keep keep keep replace keep keep keep keep keep
 Tweak MAX_PAGINATE_BY behavior in edge case.

Always respect `paginate_by` settings if client does not specify page
size.  (Even if the developer has misconfigured, so that `paginate_by >
max`.) 
rest_framework/tests/test_pagination.py