  class TestResponseRenderContent(TestCase):
      
      def get_response(self, url='', accept_list=[], content=None):
          request = RequestFactory().get(url, HTTP_ACCEPT=','.join(accept_list))
          return Response(request=request, content=content, renderers=DEFAULT_RENDERERS)
  
      def test_render(self):
          """
          Test rendering simple data to json.  
          """
 
</s> remove         request = RequestFactory().get(url, HTTP_ACCEPT=','.join(accept_list))
 </s> add         kwargs = {}
        if accept_list is not None:
            kwargs['HTTP_ACCEPT'] = HTTP_ACCEPT=','.join(accept_list)
        request = RequestFactory().get(url, **kwargs) </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     :exc:`response.ErrorResponse` with status code 400. If set to true, only
 </s> add     :exc:`response.ImmediateResponse` with status code 400. If set to true, only </s> remove         Typically raises a :exc:`response.ErrorResponse` with status code 400 (Bad Request) on failure.
 </s> add         Typically raises a :exc:`response.ImmediateResponse` with status code 400 (Bad Request) on failure.
        return Response(request=request, content=content, renderers=[r() for r in DEFAULT_RENDERERS])
  class TestResponseRenderContent(TestCase):
      
      def get_response(self, url='', accept_list=[], content=None):
          request = RequestFactory().get(url, HTTP_ACCEPT=','.join(accept_list))
        return Response(request=request, content=content, renderers=[r() for r in DEFAULT_RENDERERS])
  
      def test_render(self):
          """
          Test rendering simple data to json.  
          """
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