  
          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]
  
          next_url = self.pagination.get_next_link()
          assert next_url
  
          request = Request(factory.get(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         next_url = self.pagination.get_next_link()
        assert next_url
 </s> add         assert previous == [7, 7, 7, 8, 9]
        assert current == [9, 9, 9, 9, 9]
        assert next is None </s> remove         request = Request(factory.get(previous_url))
        queryset = self.paginate_queryset(request)
        assert [item.created for item in queryset] == [6, 7, 8, 9, 10]
 </s> add         if next_url is not None:
            request = Request(factory.get(next_url))
            queryset = self.pagination.paginate_queryset(self.queryset, request)
            next = [item.created for item in queryset]
        else:
            next = None </s> remove         next_url = self.pagination.get_next_link()
        assert next_url
 </s> add         assert previous == [7, 7, 7, 7, 7]
        assert current == [7, 7, 7, 8, 9]
        assert next == [9, 9, 9, 9, 9] </s> remove         request = Request(factory.get(next_url))
        queryset = self.paginate_queryset(request)
        assert [item.created for item in queryset] == [1, 1, 2, 3, 4]
 </s> add         (previous, current, next, previous_url, next_url) = self.get_pages(next_url)
        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
            ]
        ])
  
          next_url = self.pagination.get_next_link()
          assert next_url
  
        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
            ]
        ])
        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
            ]
        ])
        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
            ]
        ])
  
          next_url = self.pagination.get_next_link()
          assert next_url
  
          request = Request(factory.get(next_url))
keep keep keep keep replace replace replace keep keep keep keep keep
 Tidy up cursor tests and make more comprehensive 
tests/test_pagination.py