          search_decimal = Decimal('5.25')
          search_date = datetime.date(2012, 10, 2)
          valid_item = self.objects.filter(decimal__lt=search_decimal, date__gt=search_date)[0]
          valid_item_data = self._serialize_object(valid_item)
          response = self.client.get('{url}?decimal={decimal}&date={date}'.format(url=self._get_url(valid_item), decimal=search_decimal, date=search_date))
          self.assertEqual(response.status_code, status.HTTP_200_OK)
          self.assertEqual(response.data, valid_item_data)
  
  
  class SearchFilterModel(models.Model):
 
</s> remove         request = factory.get('/?decimal=%s&date=%s' % (search_decimal, search_date))
 </s> add         request = factory.get('/', {
            'decimal': '%s' % (search_decimal,),
            'date': '%s' % (search_date,)
        }) </s> remove         request = factory.get('/?date=%s' % search_date)  # search_date str: '2012-10-02'
 </s> add         request = factory.get('/', {'date': '%s' % search_date})  # search_date str: '2012-10-02' </s> remove         request = factory.get('/?date=%s' % search_date)  # search_date str: '2012-09-22'
 </s> add         request = factory.get('/', {'date': '%s' % search_date})  # search_date str: '2012-09-22' </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})
        response = self.client.get(
            '{url}'.format(url=self._get_url(valid_item)), {
                'decimal': '{decimal}'.format(decimal=search_decimal),
                'date': '{date}'.format(date=search_date)
            })
          search_decimal = Decimal('5.25')
          search_date = datetime.date(2012, 10, 2)
          valid_item = self.objects.filter(decimal__lt=search_decimal, date__gt=search_date)[0]
          valid_item_data = self._serialize_object(valid_item)
        response = self.client.get(
            '{url}'.format(url=self._get_url(valid_item)), {
                'decimal': '{decimal}'.format(decimal=search_decimal),
                'date': '{date}'.format(date=search_date)
            })
          self.assertEqual(response.status_code, status.HTTP_200_OK)
          self.assertEqual(response.data, valid_item_data)
  
  
  class SearchFilterModel(models.Model):
keep keep keep keep replace keep keep keep keep keep
 Refactoring due to the previous commit. 
rest_framework/tests/test_filters.py