  from django.test.client import RequestFactory
  from rest_framework.negotiation import DefaultContentNegotiation
  
  factory = RequestFactory()
  
  
  class MockJSONRenderer(object):
 
</s> remove         request = factory.get('/', HTTP_ACCEPT='*/*')
 </s> add         request = Request(factory.get('/', HTTP_ACCEPT='*/*')) </s> remove         request = factory.get('/', HTTP_ACCEPT='application/json; indent=8')
 </s> add         request = Request(factory.get('/', HTTP_ACCEPT='application/json; indent=8')) </s> remove         format = format_suffix or request.GET.get(format_query_param)
 </s> add         format = format_suffix or request.QUERY_PARAMS.get(format_query_param) </s> remove         request = factory.get('/')
 </s> add         request = Request(factory.get('/')) </s> remove         header = request.GET.get(self.settings.URL_ACCEPT_OVERRIDE, header)
 </s> add         header = request.QUERY_PARAMS.get(self.settings.URL_ACCEPT_OVERRIDE, header)
from rest_framework.request import Request

  from django.test.client import RequestFactory
  from rest_framework.negotiation import DefaultContentNegotiation
from rest_framework.request import Request

  
  factory = RequestFactory()
  
  
  class MockJSONRenderer(object):
keep add keep keep keep keep keep
 Use request.QUERY_PARAMS internally

(instead of request.GET) 
rest_framework/tests/negotiation.py