  from djangorestframework.compat import RequestFactory
  from djangorestframework.views import BaseView
  import StringIO
  
  class UploadFilesTests(TestCase):
      """Check uploading of files"""
 
</s> remove from djangorestframework.resource import Resource
 </s> add from djangorestframework.views import BaseView </s> remove class Sandbox(Resource):
 </s> add class Sandbox(BaseView): </s> remove                 response.cleaned_content = self.resource.object_to_serializable(response.raw_content)
 </s> add                 response.cleaned_content = self.object_to_data(response.raw_content) </s> remove     >>> MyFormParser(some_view).parse(StringIO(inpt)) == {'key1': 'blo1', 'key2': []}
 </s> add     >>> (data, files) = MyFormParser(some_view).parse(StringIO(inpt))
    >>> data == {'key1': 'blo1', 'key2': []}
from djangorestframework.resource import FormResource
  from djangorestframework.compat import RequestFactory
  from djangorestframework.views import BaseView
from djangorestframework.resource import FormResource
  import StringIO
  
  class UploadFilesTests(TestCase):
      """Check uploading of files"""
keep add keep keep keep keep
 refactoring resource specfic stuff into ResourceMixin - validators now defunct 
djangorestframework/tests/files.py