  
  class TestResponseDetermineRenderer(TestCase):
  
      def get_response(self, url='', accept_list=[], renderers=[]):
          request = RequestFactory().get(url, HTTP_ACCEPT=','.join(accept_list))
          return Response(request=request, renderers=renderers)
  
      def get_renderer_mock(self, media_type):
          return type('RendererMock', (BaseRenderer,), {
              'media_type': media_type,
 
</s> remove         })
 </s> add         })() </s> remove         return Response(request=request, content=content, renderers=DEFAULT_RENDERERS)
 </s> add         return Response(request=request, content=content, renderers=[r() for r in DEFAULT_RENDERERS]) </s> remove         renderers = (PRenderer,)
        response = self.get_response(accept_list=accept_list, renderers=renderers)
        self.assertRaises(ErrorResponse, response._determine_renderer)
 </s> add         response = self.get_response(accept_list=accept_list, renderers=(prenderer,))
        self.assertRaises(ImmediateResponse, response._determine_renderer) </s> remove     renderers = (DocumentingHTMLRenderer, JSONRenderer)
 </s> add     renderer_classes = (DocumentingHTMLRenderer, JSONRenderer) </s> remove     renderers = (DocumentingHTMLRenderer, )
 </s> add     renderer_classes = (DocumentingHTMLRenderer, )
        kwargs = {}
        if accept_list is not None:
            kwargs['HTTP_ACCEPT'] = HTTP_ACCEPT=','.join(accept_list)
        request = RequestFactory().get(url, **kwargs)
  
  class TestResponseDetermineRenderer(TestCase):
  
      def get_response(self, url='', accept_list=[], renderers=[]):
        kwargs = {}
        if accept_list is not None:
            kwargs['HTTP_ACCEPT'] = HTTP_ACCEPT=','.join(accept_list)
        request = RequestFactory().get(url, **kwargs)
          return Response(request=request, renderers=renderers)
  
      def get_renderer_mock(self, media_type):
          return type('RendererMock', (BaseRenderer,), {
              'media_type': media_type,
keep keep keep keep replace keep keep keep keep keep
 cleaned a bit Response/ResponseMixin code, added some documentation + renamed ErrorResponse to ImmediateResponse 
djangorestframework/tests/response.py