diff options
author | Code Raguet <ignacio.code@gmail.com> | 2013-09-04 15:05:52 (GMT) |
---|---|---|
committer | Code Raguet <ignacio.code@gmail.com> | 2013-09-04 15:05:52 (GMT) |
commit | 1f1f8be5a65dfd19eb38a04a2561f1569a7b6854 (patch) | |
tree | 8919c62e240a07cc987083a96eb94411c4fedece /webapp/polls/tests/poll_tests.py | |
parent | 7f0fb1b6424473e5e861e7fc9810b56012f2a8cb (diff) |
Change PollResultFile so that it can recive a file path
Diffstat (limited to 'webapp/polls/tests/poll_tests.py')
-rw-r--r-- | webapp/polls/tests/poll_tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/polls/tests/poll_tests.py b/webapp/polls/tests/poll_tests.py index 4f58787..b663d33 100644 --- a/webapp/polls/tests/poll_tests.py +++ b/webapp/polls/tests/poll_tests.py @@ -443,7 +443,7 @@ class AddResultFilesTest(MongoTestCase): poll = self.poll poll.add_result_files([(uploaded_file_path, uploaded_filename)]) - stub = lambda f: os.path.basename(f.name) + stub = lambda path: os.path.basename(path) results = poll.get_result_files(as_instance_of=stub) result_filename = results[0] self.assertEqual(uploaded_filename, result_filename) |