  
              def __getitem__(self, sliced):
                  return self.items[sliced]
  
          self.pagination = pagination.CursorPagination()
          self.queryset = MockQuerySet(
              [MockObject(idx) for idx in range(1, 16)]
          )
  
      def paginate_queryset(self, request):
          return list(self.pagination.paginate_queryset(self.queryset, request))
  
      # def get_paginated_content(self, queryset):
      #     response = self.pagination.get_paginated_response(queryset)
      #     return response.data
  
      # def get_html_context(self):
      #     return self.pagination.get_html_context()
  
      def test_following_cursor(self):
          request = Request(factory.get('/'))
          queryset = self.paginate_queryset(request)
          assert [item.created for item in queryset] == [1, 2, 3, 4, 5]
  
          next_url = self.pagination.get_next_link()
          assert next_url
  
          request = Request(factory.get(next_url))
          queryset = self.paginate_queryset(request)
          assert [item.created for item in queryset] == [6, 7, 8, 9, 10]
  
 
</s> remove     def test_following_cursor_identical_items(self):
        request = Request(factory.get('/'))
        queryset = self.paginate_queryset(request)
        assert [item.created for item in queryset] == [1, 1, 1, 1, 1]
 </s> add         (previous, current, next, previous_url, next_url) = self.get_pages(next_url) </s> remove         next_url = self.pagination.get_next_link()
        assert next_url
 </s> add     def get_pages(self, url):
        """
        Given a URL return a tuple of: </s> remove         request = Request(factory.get(next_url))
        queryset = self.paginate_queryset(request)
        assert [item.created for item in queryset] == [6, 7, 8, 9, 10]
 </s> add         self.pagination = ExamplePagination()
        self.queryset = MockQuerySet([
            MockObject(idx) for idx in [
                1, 1, 1, 1, 1,
                1, 2, 3, 4, 4,
                4, 4, 5, 6, 7,
                7, 7, 7, 7, 7,
                7, 7, 7, 8, 9,
                9, 9, 9, 9, 9
            ]
        ]) </s> remove         self.pagination = pagination.CursorPagination()
        self.queryset = MockQuerySet([
            MockObject(idx) for idx in [
                1, 1, 1, 1, 1,
                1, 1, 1, 1, 1,
                1, 1, 2, 3, 4,
                5, 6, 7, 8, 9
            ]
        ])
 </s> add         (previous, current, next, previous_url, next_url) = self.get_pages(next_url) </s> remove         previous_url = self.pagination.get_previous_link()
        assert previous_url
 </s> add         if previous_url is not None:
            request = Request(factory.get(previous_url))
            queryset = self.pagination.paginate_queryset(self.queryset, request)
            previous = [item.created for item in queryset]
        else:
            previous = None
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
  
              def __getitem__(self, sliced):
                  return self.items[sliced]
  
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
        class ExamplePagination(pagination.CursorPagination):
            page_size = 5
  
          request = Request(factory.get(next_url))
          queryset = self.paginate_queryset(request)
          assert [item.created for item in queryset] == [6, 7, 8, 9, 10]
  
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 Tidy up cursor tests and make more comprehensive 
tests/test_pagination.py