          search_date = datetime.date(2012, 10, 2)
          request = factory.get('/?date=%s' % search_date)  # search_date str: '2012-10-02'
          response = view(request).render()
          self.assertEquals(response.status_code, status.HTTP_200_OK)
          expected_data = [ f for f in self.data if f['date'] > search_date ]
          self.assertEquals(response.data, expected_data)
  
          # Tests that the text filter set with 'icontains' in the filter class works.
          search_text = 'ff'
          request = factory.get('/?text=%s' % search_text)
 
</s> remove         expected_data = [ f for f in self.data if f['decimal'] < search_decimal ]
 </s> add         expected_data = [f for f in self.data if f['decimal'] < search_decimal] </s> remove         expected_data = [ f for f in self.data if search_text in f['text'].lower() ]
 </s> add         expected_data = [f for f in self.data if search_text in f['text'].lower()] </s> remove         expected_data = [ f for f in self.data if f['decimal'] == search_decimal ]
 </s> add         expected_data = [f for f in self.data if f['decimal'] == search_decimal] </s> remove         expected_data = [ f for f in self.data if f['date'] == search_date ]
 </s> add         expected_data = [f for f in self.data if f['date'] == search_date] </s> remove         expected_data = [ f for f in self.data if f['date'] > search_date and
                                                  f['decimal'] < search_decimal ]
 </s> add         expected_data = [f for f in self.data if f['date'] > search_date and
                                                  f['decimal'] < search_decimal]
        expected_data = [f for f in self.data if f['date'] > search_date]
          search_date = datetime.date(2012, 10, 2)
          request = factory.get('/?date=%s' % search_date)  # search_date str: '2012-10-02'
          response = view(request).render()
          self.assertEquals(response.status_code, status.HTTP_200_OK)
        expected_data = [f for f in self.data if f['date'] > search_date]
          self.assertEquals(response.data, expected_data)
  
          # Tests that the text filter set with 'icontains' in the filter class works.
          search_text = 'ff'
          request = factory.get('/?text=%s' % search_text)
keep keep keep keep replace keep keep keep keep keep
 Make filtering optional, and pluggable. 
rest_framework/tests/filterset.py