          self.assertEquals(response.data, expected_data)
  
      def test_get_filtered_class_root_view(self):
          """
          GET requests to filtered ListCreateAPIView that have a filter_class set
          should return filtered results.
          """
 
</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 class IncorrectlyConfiguredRootView(generics.ListCreateAPIView):
    model = FilterableItem
    filter_class = MisconfiguredFilter
 </s> add     class IncorrectlyConfiguredRootView(generics.ListCreateAPIView):
        model = FilterableItem
        filter_class = MisconfiguredFilter
    @unittest.skipUnless(django_filters, 'django-filters not installed')
          self.assertEquals(response.data, expected_data)
  
    @unittest.skipUnless(django_filters, 'django-filters not installed')
      def test_get_filtered_class_root_view(self):
          """
          GET requests to filtered ListCreateAPIView that have a filter_class set
          should return filtered results.
          """
keep add keep keep keep keep keep
 Make filtering optional, and pluggable. 
rest_framework/tests/filterset.py