  
          # Tests that multiple filters works.
          search_decimal = Decimal('5.25')
          search_date = datetime.date(2012, 10, 2)
          request = factory.get('/?decimal=%s&date=%s' % (search_decimal, search_date))
          response = view(request).render()
          self.assertEqual(response.status_code, status.HTTP_200_OK)
          expected_data = [f for f in self.data if f['date'] > search_date and
                           f['decimal'] < search_decimal]
          self.assertEqual(response.data, expected_data)
 
</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         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})
        request = factory.get('/', {
            'decimal': '%s' % (search_decimal,),
            'date': '%s' % (search_date,)
        })
  
          # Tests that multiple filters works.
          search_decimal = Decimal('5.25')
          search_date = datetime.date(2012, 10, 2)
        request = factory.get('/', {
            'decimal': '%s' % (search_decimal,),
            'date': '%s' % (search_date,)
        })
          response = view(request).render()
          self.assertEqual(response.status_code, status.HTTP_200_OK)
          expected_data = [f for f in self.data if f['date'] > search_date and
                           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