          return self.negotiator.select_renderer(request, self.renderers)
  
      def test_client_without_accept_use_renderer(self):
          request = Request(factory.get('/'))
          accepted_renderer, accepted_media_type = self.select_renderer(request)
          self.assertEqual(accepted_media_type, 'application/json')
  
      def test_client_underspecifies_accept_use_renderer(self):
          request = Request(factory.get('/', HTTP_ACCEPT='*/*'))
          accepted_renderer, accepted_media_type = self.select_renderer(request)
 
</s> remove         accepted_renderer, accepted_media_type = self.select_renderer(request)
 </s> add         accepted_renderer, accepted_media_type, charset = self.select_renderer(request) </s> remove         accepted_renderer, accepted_media_type = self.select_renderer(request)
 </s> add         accepted_renderer, accepted_media_type, charset = self.select_renderer(request) </s> remove         request.accepted_renderer, request.accepted_media_type = neg
 </s> add         renderer, media_type, charset = neg
        request.accepted_renderer = renderer
        request.accepted_media_type = media_type
        request.accepted_charset = charset
        accepted_renderer, accepted_media_type, charset = self.select_renderer(request)
          return self.negotiator.select_renderer(request, self.renderers)
  
      def test_client_without_accept_use_renderer(self):
          request = Request(factory.get('/'))
        accepted_renderer, accepted_media_type, charset = self.select_renderer(request)
          self.assertEqual(accepted_media_type, 'application/json')
  
      def test_client_underspecifies_accept_use_renderer(self):
          request = Request(factory.get('/', HTTP_ACCEPT='*/*'))
          accepted_renderer, accepted_media_type = self.select_renderer(request)
keep keep keep keep replace keep keep keep keep keep
 charset param gets now appended to response's Content-Type. Closes #807 
rest_framework/tests/negotiation.py