  from django.test import TestCase, Client
  
  from rest_framework import status
  from rest_framework.authentication import SessionAuthentication
  from rest_framework.compat import RequestFactory
  from rest_framework.parsers import (
      FormParser,
      MultiPartParser,
      PlainTextParser,
  )
 
</s> remove from rest_framework.compat import RequestFactory
 </s> add from django.test.client import RequestFactory </s> remove # from rest_framework.compat import RequestFactory
 </s> add # from django.test.client import RequestFactory </s> remove from rest_framework.compat import RequestFactory
 </s> add from django.test.client import RequestFactory </s> remove # from rest_framework.compat import RequestFactory
 </s> add # from django.test.client import RequestFactory </s> remove # from rest_framework.compat import RequestFactory
 </s> add # from django.test.client import RequestFactory
from django.test.client import RequestFactory
  from django.test import TestCase, Client
  
  from rest_framework import status
  from rest_framework.authentication import SessionAuthentication
from django.test.client import RequestFactory
  from rest_framework.parsers import (
      FormParser,
      MultiPartParser,
      PlainTextParser,
  )
keep keep keep keep replace keep keep keep keep keep
 Remove RequestFactory from compat (Now 1.2 is not supported) 
rest_framework/tests/request.py