          {'id': obj.id, 'text': obj.text, 'decimal': obj.decimal, 'date': obj.date}
          for obj in self.objects.all()
          ]
  
      def test_get_filtered_fields_root_view(self):
          """
          GET requests to paginated ListCreateAPIView should return paginated results.
          """
          view = FilterFieldsRootView.as_view()
 
</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         relative_url = '?%s=%d' % (self.page_field, page)
        if request:
            for field, value in request.QUERY_PARAMS.iteritems():
                if field != self.page_field:
                    relative_url += '&%s=%s' % (field, value)
            return request.build_absolute_uri(relative_url)
        return relative_url
 </s> add         url = request and request.get_full_path() or ''
        return replace_query_param(url, self.page_field, page)
    @unittest.skipUnless(django_filters, 'django-filters not installed')
          {'id': obj.id, 'text': obj.text, 'decimal': obj.decimal, 'date': obj.date}
          for obj in self.objects.all()
          ]
  
    @unittest.skipUnless(django_filters, 'django-filters not installed')
      def test_get_filtered_fields_root_view(self):
          """
          GET requests to paginated ListCreateAPIView should return paginated results.
          """
          view = FilterFieldsRootView.as_view()
keep keep keep add keep keep keep keep keep
 Make filtering optional, and pluggable. 
rest_framework/tests/filterset.py