  from django.test import TestCase
  from django.utils import simplejson as json
  from rest_framework import generics, serializers, status
  from rest_framework.tests.utils import DRFRequestFactory
  from rest_framework.tests.models import BasicModel, Comment, SlugBasedModel
  
  
  factory = DRFRequestFactory()
  
 
</s> remove factory = DRFRequestFactory()
 </s> add factory = RequestFactory() </s> remove # from django.test.client import RequestFactory
 </s> add  </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         self.factory = DRFRequestFactory()
 </s> add         self.factory = RequestFactory()
from rest_framework.tests.utils import RequestFactory
  from django.test import TestCase
  from django.utils import simplejson as json
  from rest_framework import generics, serializers, status
from rest_framework.tests.utils import RequestFactory
  from rest_framework.tests.models import BasicModel, Comment, SlugBasedModel
  
  
  factory = DRFRequestFactory()
  
keep keep keep replace keep keep keep keep keep
 Renaming DRFRequestFactory to RequestFactory

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