  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
  
  import StringIO
  
  class UploadFilesTests(TestCase):
      """Check uploading of files"""
 
</s> remove from django.test import TestCase
from django import forms
 </s> add # from django.test import TestCase
# from django import forms </s> remove import StringIO
 </s> add # import StringIO </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 class UploadFilesTests(TestCase):
    """Check uploading of files"""
    def setUp(self):
        self.factory = RequestFactory()
 </s> add 
# from djangorestframework.compat import RequestFactory
# from djangorestframework.views import View
# from djangorestframework.response import Response
  from django.test import TestCase
  from django import forms
  
# from djangorestframework.compat import RequestFactory
# from djangorestframework.views import View
# from djangorestframework.response import Response
# from djangorestframework.compat import RequestFactory
# from djangorestframework.views import View
# from djangorestframework.response import Response
# from djangorestframework.compat import RequestFactory
# from djangorestframework.views import View
# from djangorestframework.response import Response
# from djangorestframework.compat import RequestFactory
# from djangorestframework.views import View
# from djangorestframework.response import Response
  
  import StringIO
  
  class UploadFilesTests(TestCase):
      """Check uploading of files"""
keep keep keep replace replace replace replace keep keep keep keep keep
 Drop out resources & mixins 
djangorestframework/tests/files.py