          assert next == [1, 2, 3, 4, 4]
  
          assert isinstance(self.pagination.to_html(), type(''))
  
      def test_page_size(self):
          (previous, current, next, previous_url, next_url) = \
              self.get_pages('/?page_size=10')
  
          assert previous is None
          assert current == [1, 1, 1, 1, 1, 1, 2, 3, 4, 4]
          assert next == [4, 4, 5, 6, 7, 7, 7, 7, 7, 7]
          assert 'page_size=10' in next_url
  
          (previous, current, next, previous_url, next_url) = \
              self.get_pages(next_url.replace('page_size=10', 'page_size=4'))
  
          assert previous == [2, 3, 4, 4]
          assert current == [4, 4, 5, 6]
          assert next == [7, 7, 7, 7]
          assert 'page_size=4' in previous_url
          assert 'page_size=4' in next_url
  
  
  def test_get_displayed_page_numbers():
      """
      Test our contextual page display function.
  
 
</s> remove     # Client can control the page size using this query parameter.
    # Default is 'None'. Set to eg 'page_size' to enable usage.
    page_size_query_param = None

    # Set to an integer to limit the maximum page size the client may request.
    # Only relevant if 'page_size_query_param' has also been set.
    max_page_size = None

 </s> add  </s> remove         if self.page_size_query_param:
            try:
                return _positive_int(
                    request.query_params[self.page_size_query_param],
                    strict=True,
                    cutoff=self.max_page_size
                )
            except (KeyError, ValueError):
                pass

 </s> add  </s> remove             page_size_query_param = 'page_size'
            max_page_size = 20
 </s> add 
          assert next == [1, 2, 3, 4, 4]
  
          assert isinstance(self.pagination.to_html(), type(''))
  


















  
  def test_get_displayed_page_numbers():
      """
      Test our contextual page display function.
  
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 Add get_page_size hook to CursorPagination. Closes #3068. 
tests/test_pagination.py