  
  class MockHTMLRenderer(BaseRenderer):
      media_type = 'text/html'
  
  
  class TestAcceptedMediaType(TestCase):
      def setUp(self):
          self.renderers = [MockJSONRenderer(), MockHTMLRenderer()]
          self.negotiator = DefaultContentNegotiation()
 
</s> remove 
class MockHTMLRenderer(object):
 </s> add class MockHTMLRenderer(BaseRenderer): </s> remove class MockJSONRenderer(object):
 </s> add class MockJSONRenderer(BaseRenderer):
class NoCharsetSpecifiedRenderer(BaseRenderer):
    media_type = 'my/media'

class CharsetSpecifiedRenderer(BaseRenderer):
    media_type = 'my/media'
    charset = 'mycharset'
  
  class MockHTMLRenderer(BaseRenderer):
      media_type = 'text/html'
  
class NoCharsetSpecifiedRenderer(BaseRenderer):
    media_type = 'my/media'

class CharsetSpecifiedRenderer(BaseRenderer):
    media_type = 'my/media'
    charset = 'mycharset'
  
  class TestAcceptedMediaType(TestCase):
      def setUp(self):
          self.renderers = [MockJSONRenderer(), MockHTMLRenderer()]
          self.negotiator = DefaultContentNegotiation()
keep keep keep add keep keep keep keep keep
 charset param gets now appended to response's Content-Type. Closes #807 
rest_framework/tests/negotiation.py