          view = FilterFieldsRootView.as_view()
  
          EXPECTED_NUM_QUERIES = 2
  
          request = factory.get('/?decimal=15.20')
          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])
 
</s> remove         request = factory.get('/?decimal=15.20')
 </s> add         request = factory.get('/', {'decimal': '15.20'}) </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'])) </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('/', {'decimal': '15.20'})
          view = FilterFieldsRootView.as_view()
  
          EXPECTED_NUM_QUERIES = 2
  
        request = factory.get('/', {'decimal': '15.20'})
          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])
keep keep keep keep replace keep keep keep keep keep
 Refactoring due to the previous commit. 
rest_framework/tests/test_pagination.py