  from rest_framework import generics, serializers, status
  from rest_framework.tests.models import BasicModel, Comment, SlugBasedModel
  
  
  factory = RequestFactory()
  
  
  class RootView(generics.ListCreateAPIView):
      """
      Example description for OPTIONS.
 
</s> remove class InstanceView(generics.RetrieveUpdateDestroyAPIView):
 </s> add class InstanceView(generics.RetrievePartialUpdateDestroyAPIView): </s> remove from django.test.client import RequestFactory
 </s> add  </s> remove from django.test.client import RequestFactory
 </s> add # from django.test.client import RequestFactory </s> remove         self.factory = RequestFactory()
 </s> add         self.factory = DRFRequestFactory()
factory = DRFRequestFactory()
  from rest_framework import generics, serializers, status
  from rest_framework.tests.models import BasicModel, Comment, SlugBasedModel
  
  
factory = DRFRequestFactory()
  
  
  class RootView(generics.ListCreateAPIView):
      """
      Example description for OPTIONS.
keep keep keep keep replace keep keep keep keep keep
 Adjust PATCH test cases to use the new DRFRequestFactory 
rest_framework/tests/generics.py