  from django.test import TestCase
  from rest_framework import status
  from rest_framework.response import Response
  from rest_framework.compat import RequestFactory
  from rest_framework.renderers import JSONRenderer
  from rest_framework.parsers import JSONParser
  from rest_framework.authentication import BasicAuthentication
  from rest_framework.throttling import UserRateThrottle
  from rest_framework.permissions import IsAuthenticated
 
</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
  from rest_framework import status
  from rest_framework.response import Response
from django.test.client import RequestFactory
  from rest_framework.renderers import JSONRenderer
  from rest_framework.parsers import JSONParser
  from rest_framework.authentication import BasicAuthentication
  from rest_framework.throttling import UserRateThrottle
  from rest_framework.permissions import IsAuthenticated
keep keep keep replace keep keep keep keep keep
 Remove RequestFactory from compat (Now 1.2 is not supported) 
rest_framework/tests/decorators.py