  from django.test import TestCase
  from django import forms
  
  from djangorestframework.compat import RequestFactory
  from djangorestframework.views import View
  from djangorestframework.resources import FormResource
  from djangorestframework.response import Response
 
</s> remove from djangorestframework.compat import RequestFactory
from djangorestframework.views import View
from djangorestframework.resources import FormResource
from djangorestframework.response import Response
 </s> add # from djangorestframework.compat import RequestFactory
# from djangorestframework.views import View
# from djangorestframework.response import Response </s> remove from django import forms
from django.db import models
from django.test import TestCase
from djangorestframework.resources import FormResource, ModelResource
from djangorestframework.response import ImmediateResponse
from djangorestframework.views import View
 </s> add # from django import forms
# from django.db import models
# from django.test import TestCase
# from djangorestframework.response import ImmediateResponse
# from djangorestframework.views import View </s> remove from djangorestframework.permissions import PerUserThrottling, PerViewThrottling, PerResourceThrottling
from djangorestframework.resources import FormResource
 </s> add from djangorestframework.permissions import PerUserThrottling, PerViewThrottling </s> remove import StringIO
 </s> add # import StringIO </s> remove from djangorestframework.mixins import *
from djangorestframework import resources, renderers, parsers, authentication, permissions, status
 </s> add from djangorestframework import renderers, parsers, authentication, permissions, status
# from django.test import TestCase
# from django import forms
# from django.test import TestCase
# from django import forms
# from django.test import TestCase
# from django import forms
  
  from djangorestframework.compat import RequestFactory
  from djangorestframework.views import View
  from djangorestframework.resources import FormResource
  from djangorestframework.response import Response
replace replace keep keep keep keep keep
 Drop out resources & mixins 
djangorestframework/tests/files.py