          class MockResource(Resource):
              allowed_methods = anon_allowed_methods = ('POST',)
              form = FileForm
  
              def post(self, request, auth, content, *args, **kwargs):
                  #self.uploaded = content.file
                  return {'FILE_NAME': content['file'].name,
                          'FILE_CONTENT': content['file'].read()}
                  
          file = StringIO.StringIO('stuff')
          file.name = 'stuff.txt'
          request = self.factory.post('/', {'file': file})
          view = MockResource.as_view()
 
</s> remove             def get(self, request, auth):
 </s> add             def get(self, request): </s> remove     def post(self, request, auth, content):
 </s> add     def post(self, request): </s> remove     def get(self, request, auth, *args, **kwargs):
 </s> add     def get(self, request, *args, **kwargs): </s> remove     def get(self, request, auth):
 </s> add     def get(self, request): </s> remove     def get(self, request, auth, *args, **kwargs):
 </s> add     def get(self, request, *args, **kwargs):
            def post(self, request, *args, **kwargs):
                return {'FILE_NAME': self.CONTENT['file'].name,
                        'FILE_CONTENT': self.CONTENT['file'].read()}
          class MockResource(Resource):
              allowed_methods = anon_allowed_methods = ('POST',)
              form = FileForm
  
            def post(self, request, *args, **kwargs):
                return {'FILE_NAME': self.CONTENT['file'].name,
                        'FILE_CONTENT': self.CONTENT['file'].read()}
            def post(self, request, *args, **kwargs):
                return {'FILE_NAME': self.CONTENT['file'].name,
                        'FILE_CONTENT': self.CONTENT['file'].read()}
            def post(self, request, *args, **kwargs):
                return {'FILE_NAME': self.CONTENT['file'].name,
                        'FILE_CONTENT': self.CONTENT['file'].read()}
            def post(self, request, *args, **kwargs):
                return {'FILE_NAME': self.CONTENT['file'].name,
                        'FILE_CONTENT': self.CONTENT['file'].read()}
                  
          file = StringIO.StringIO('stuff')
          file.name = 'stuff.txt'
          request = self.factory.post('/', {'file': file})
          view = MockResource.as_view()
keep keep keep keep replace replace replace replace keep keep keep keep keep
 depercate auth and content arguments to the request handler methods - yea :) 
djangorestframework/tests/files.py