  
          # Tests that the decimal filter set that should fail.
          search_decimal = Decimal('4.25')
          high_item = self.objects.filter(decimal__gt=search_decimal)[0]
          response = self.client.get('{url}?decimal={param}'.format(url=self._get_url(high_item), param=search_decimal))
          self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
  
          # Tests that the decimal filter set that should succeed.
          search_decimal = Decimal('4.25')
          low_item = self.objects.filter(decimal__lt=search_decimal)[0]
 
</s> remove         response = self.client.get('{url}?decimal={param}'.format(url=self._get_url(low_item), param=search_decimal))
 </s> add         response = self.client.get(
            '{url}'.format(url=self._get_url(low_item)),
            {'decimal': '{param}'.format(param=search_decimal)}) </s> remove         request = factory.get('/?decimal=%s' % search_decimal)
 </s> add         request = factory.get('/', {'decimal': '%s' % search_decimal}) </s> remove         request = factory.get('/?decimal=%s' % search_decimal)
 </s> add         request = factory.get('/', {'decimal': '%s' % search_decimal}) </s> remove         request = factory.get('/?decimal=%s' % search_decimal)
 </s> add         request = factory.get('/', {'decimal': '%s' % search_decimal}) </s> remove         request = factory.get('/?text=%s' % search_text)
 </s> add         request = factory.get('/', {'text': '%s' % search_text})
        response = self.client.get(
            '{url}'.format(url=self._get_url(high_item)),
            {'decimal': '{param}'.format(param=search_decimal)})
  
          # Tests that the decimal filter set that should fail.
          search_decimal = Decimal('4.25')
          high_item = self.objects.filter(decimal__gt=search_decimal)[0]
        response = self.client.get(
            '{url}'.format(url=self._get_url(high_item)),
            {'decimal': '{param}'.format(param=search_decimal)})
          self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
  
          # Tests that the decimal filter set that should succeed.
          search_decimal = Decimal('4.25')
          low_item = self.objects.filter(decimal__lt=search_decimal)[0]
keep keep keep keep replace keep keep keep keep keep
 Refactoring due to the previous commit. 
rest_framework/tests/test_filters.py