  from django.test import testcases
  from django.utils import six
  from django.utils.http import urlencode
  from rest_framework.settings import api_settings
  from rest_framework.compat import RequestFactory as DjangoRequestFactory
  from rest_framework.compat import force_bytes_or_smart_bytes
  
  
  def force_authenticate(request, user=None, token=None):
      request._force_auth_user = user
      request._force_auth_token = token
 
</s> remove from django.utils import six
 </s> add  </s> remove from django.test.client import Client as DjangoClient
from django.test.client import ClientHandler
 </s> add  </s> remove from django.test.signals import setting_changed
from django.conf import settings
 </s> add 
from rest_framework.compat import (
    force_bytes_or_smart_bytes, RequestFactory as DjangoRequestFactory
)
  from django.test import testcases
  from django.utils import six
  from django.utils.http import urlencode
  from rest_framework.settings import api_settings
from rest_framework.compat import (
    force_bytes_or_smart_bytes, RequestFactory as DjangoRequestFactory
)
from rest_framework.compat import (
    force_bytes_or_smart_bytes, RequestFactory as DjangoRequestFactory
)
  
  
  def force_authenticate(request, user=None, token=None):
      request._force_auth_user = user
      request._force_auth_token = token
keep keep keep keep replace replace keep keep keep keep keep
 Cleanup import following PEP 8 style guide 
rest_framework/test.py