diff options
| author | Tom Christie | 2011-04-11 17:13:11 +0100 | 
|---|---|---|
| committer | Tom Christie | 2011-04-11 17:13:11 +0100 | 
| commit | 18bbda84b9c663fec6eede112a21cf1a48103303 (patch) | |
| tree | 841d1a167b823cbca7a5c487f6dbee4346db4b24 /djangorestframework/tests/files.py | |
| parent | 6096b50dbe20349144aa92660c6c8467f67f50e7 (diff) | |
| download | django-rest-framework-18bbda84b9c663fec6eede112a21cf1a48103303.tar.bz2 | |
depercate auth and content arguments to the request handler methods - yea :)
Diffstat (limited to 'djangorestframework/tests/files.py')
| -rw-r--r-- | djangorestframework/tests/files.py | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/djangorestframework/tests/files.py b/djangorestframework/tests/files.py index e155f181..dd4689a6 100644 --- a/djangorestframework/tests/files.py +++ b/djangorestframework/tests/files.py @@ -19,10 +19,9 @@ class UploadFilesTests(TestCase):              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()} +            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'  | 
