          request = factory.get('/')
          self.assertRaises(AssertionError, view, request)
  
      def test_unknown_filter(self):
          """
          GET requests with filters that aren't configured should return 200.
          """
          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     @unittest.skip('can\'t pass because view is a simple Django view and response is an ImmediateResponse')
    def test_unsatisfiable_accept_header_on_request_returns_406_status(self):
        """If the Accept header is unsatisfiable we should return a 406 Not Acceptable response."""
        resp = self.client.get('/', HTTP_ACCEPT='foo/bar')
        self.assertEquals(resp.status_code, status.HTTP_406_NOT_ACCEPTABLE)

 </s> add 
    @unittest.skipUnless(django_filters, 'django-filters not installed')
          request = factory.get('/')
          self.assertRaises(AssertionError, view, request)
  
    @unittest.skipUnless(django_filters, 'django-filters not installed')
      def test_unknown_filter(self):
          """
          GET requests with filters that aren't configured should return 200.
          """
          view = FilterFieldsRootView.as_view()
keep keep add keep keep keep keep keep
 Make filtering optional, and pluggable. 
rest_framework/tests/filterset.py