  
  factory = APIRequestFactory()
  
  
  class MockJSONRenderer(BaseRenderer):
      media_type = 'application/json'
  
  
  class MockHTMLRenderer(BaseRenderer):
      media_type = 'text/html'
 
</s> remove         self.renderers = [MockJSONRenderer(), MockHTMLRenderer()]
 </s> add         self.renderers = [MockJSONRenderer(), MockHTMLRenderer(), MockOpenAPIRenderer()] </s> remove         ret = renderer.render(self.data, media_type, context)
 </s> add         ret = renderer.render(self.data, accepted_media_type, context)
class MockOpenAPIRenderer(BaseRenderer):
    media_type = 'application/openapi+json;version=2.0'
    format = 'swagger'


  
  factory = APIRequestFactory()
  
  
class MockOpenAPIRenderer(BaseRenderer):
    media_type = 'application/openapi+json;version=2.0'
    format = 'swagger'


  class MockJSONRenderer(BaseRenderer):
      media_type = 'application/json'
  
  
  class MockHTMLRenderer(BaseRenderer):
      media_type = 'text/html'
keep keep keep add keep keep keep keep keep keep
 Fix json indent parameter. Closes #4281 (#4313) 
tests/test_negotiation.py