          self.assertEqual(response.data['results'], self.data[:10])
          self.assertNotEqual(response.data['next'], None)
          self.assertEqual(response.data['previous'], None)
  
          request = factory.get(response.data['next'])
          with self.assertNumQueries(EXPECTED_NUM_QUERIES):
              response = view(request).render()
          self.assertEqual(response.status_code, status.HTTP_200_OK)
          self.assertEqual(response.data['count'], 15)
          self.assertEqual(response.data['results'], self.data[10:15])
 
</s> remove         request = factory.get(response.data['next'])
 </s> add         request = factory.get(*split_arguments_from_url(response.data['next'])) </s> remove         request = factory.get(response.data['next'])
 </s> add         request = factory.get(*split_arguments_from_url(response.data['next'])) </s> remove         request = factory.get(response.data['previous'])
 </s> add         request = factory.get(*split_arguments_from_url(response.data['previous'])) </s> remove         request = factory.get(response.data['previous'])
 </s> add         request = factory.get(*split_arguments_from_url(response.data['previous'])) </s> remove         request = factory.get(response.data['next'])
 </s> add         request = factory.get(*split_arguments_from_url(response.data['next']))
        request = factory.get(*split_arguments_from_url(response.data['next']))
          self.assertEqual(response.data['results'], self.data[:10])
          self.assertNotEqual(response.data['next'], None)
          self.assertEqual(response.data['previous'], None)
  
        request = factory.get(*split_arguments_from_url(response.data['next']))
          with self.assertNumQueries(EXPECTED_NUM_QUERIES):
              response = view(request).render()
          self.assertEqual(response.status_code, status.HTTP_200_OK)
          self.assertEqual(response.data['count'], 15)
          self.assertEqual(response.data['results'], self.data[10:15])
keep keep keep keep replace keep keep keep keep keep
 Refactoring due to the previous commit. 
rest_framework/tests/test_pagination.py