          self.view = view
  
      def check_permission(self, auth):
          """
          Should simply return, or raise an :exc:`response.ErrorResponse`.
          """
          pass
  
  
  class FullAnonAccess(BasePermission):
 
</s> remove         Return `None` or raise an :exc:`.ErrorResponse`.
 </s> add         Return `None` or raise an :exc:`.ImmediateResponse`. </s> remove # TODO: can't pass because view is a simple Django view and response is an ErrorResponse
#    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.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> remove     def __init__(self, view):
 </s> add     def __init__(self, view=None): </s> remove                 return Response({'a':1, 'b':2, 'c':3})
 </s> add                 return self.response_class({'a':1, 'b':2, 'c':3}) </s> remove         May raise a 415 ErrorResponse (Unsupported Media Type), or a 400 ErrorResponse (Bad Request).
 </s> add         May raise a 415 ImmediateResponse (Unsupported Media Type), or a 400 ImmediateResponse (Bad Request).
        Should simply return, or raise an :exc:`response.ImmediateResponse`.
          self.view = view
  
      def check_permission(self, auth):
          """
        Should simply return, or raise an :exc:`response.ImmediateResponse`.
          """
          pass
  
  
  class FullAnonAccess(BasePermission):
keep keep keep keep replace keep keep keep keep keep
 cleaned a bit Response/ResponseMixin code, added some documentation + renamed ErrorResponse to ImmediateResponse 
djangorestframework/permissions.py