  from django.conf import settings
  from django.test.client import Client as DjangoClient
  from django.test.client import ClientHandler
  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
  
 
</s> remove from django.test.client import Client as DjangoClient
from django.test.client import ClientHandler
 </s> add  </s> remove from rest_framework.compat import RequestFactory as DjangoRequestFactory
from rest_framework.compat import force_bytes_or_smart_bytes
 </s> add from rest_framework.compat import (
    force_bytes_or_smart_bytes, RequestFactory as DjangoRequestFactory
)
  from django.conf import settings
  from django.test.client import Client as DjangoClient
  from django.test.client import ClientHandler
  from django.test import testcases

  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
  
keep keep keep keep replace keep keep keep keep keep
 Cleanup import following PEP 8 style guide 
rest_framework/test.py