  from djangorestframework.compat import RequestFactory
  from djangorestframework.views import View
  from djangorestframework.resources import FormResource
  import StringIO
  
  class UploadFilesTests(TestCase):
      """Check uploading of files"""
      def setUp(self):
          self.factory = RequestFactory()
 
</s> remove from djangorestframework.mixins import ResponseMixin
from djangorestframework.response import Response
 </s> add  </s> remove from djangorestframework.compat import View as DjangoView
 </s> add  </s> remove from djangorestframework import status
 </s> add from djangorestframework.response import Response </s> remove from djangorestframework.compat import RequestFactory, unittest
 </s> add from djangorestframework.compat import RequestFactory
from djangorestframework.response import Response

  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"""
      def setUp(self):
          self.factory = RequestFactory()
keep keep add keep keep keep keep keep keep
 Response as a subclass of HttpResponse - first draft, not quite there yet. 
djangorestframework/tests/files.py