  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
 
</s> remove from rest_framework.tests.utils import DRFRequestFactory
 </s> add from rest_framework.tests.utils import RequestFactory </s> remove from rest_framework.tests.utils import DRFRequestFactory
 </s> add from rest_framework.tests.utils import RequestFactory </s> remove class DRFRequestFactory(RequestFactory):
 </s> add class RequestFactory(RequestFactory): </s> remove factory = DRFRequestFactory()
 </s> add factory = RequestFactory() </s> remove         super(DRFRequestFactory, self).__init__(**defaults)
 </s> add         super(RequestFactory, self).__init__(**defaults)
  from django.test import TestCase
  from rest_framework import status
  from rest_framework.response import Response

  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
 Renaming DRFRequestFactory to RequestFactory

Updated tests to reflect the new name. 
rest_framework/tests/decorators.py