          self.assertEqual(response.data, self.data)
  
          # Tests that the decimal filter works.
          search_decimal = Decimal('2.25')
          request = factory.get('/?decimal=%s' % search_decimal)
          response = view(request).render()
          self.assertEqual(response.status_code, status.HTTP_200_OK)
          expected_data = [f for f in self.data if f['decimal'] == search_decimal]
          self.assertEqual(response.data, expected_data)
  
 
</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}) </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         request = factory.get('/?decimal=%s&date=%s' % (search_decimal, search_date))
 </s> add         request = factory.get('/', {
            'decimal': '%s' % (search_decimal,),
            'date': '%s' % (search_date,)
        })
        request = factory.get('/', {'decimal': '%s' % search_decimal})
          self.assertEqual(response.data, self.data)
  
          # Tests that the decimal filter works.
          search_decimal = Decimal('2.25')
        request = factory.get('/', {'decimal': '%s' % search_decimal})
          response = view(request).render()
          self.assertEqual(response.status_code, status.HTTP_200_OK)
          expected_data = [f for f in self.data if f['decimal'] == search_decimal]
          self.assertEqual(response.data, expected_data)
  
keep keep keep keep replace keep keep keep keep keep
 Refactoring due to the previous commit. 
rest_framework/tests/test_filters.py