          class FileForm(forms.Form):
              file = forms.FileField
  
          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()}
 
</s> remove     allowed_methods = ('POST',)

 </s> add  </s> remove             anon_allowed_methods = allowed_methods = ('GET',)
 </s> add             permissions = ()
 </s> remove     allowed_methods = ('GET', 'POST')
 </s> add  </s> remove     def get_form(self, data=None):
        return None

 </s> add  </s> remove     anon_allowed_methods = ('GET',)
 </s> add     permissions = ()
            permissions = ()
          class FileForm(forms.Form):
              file = forms.FileField
  
          class MockResource(Resource):
            permissions = ()
              form = FileForm
  
              def post(self, request, *args, **kwargs):
                  return {'FILE_NAME': self.CONTENT['file'].name,
                          'FILE_CONTENT': self.CONTENT['file'].read()}
keep keep keep keep replace keep keep keep keep keep
 Generic permissions added, allowed_methods and anon_allowed_methods now defunct, dispatch now mirrors View.dispatch more nicely 
djangorestframework/tests/files.py