diff options
author | Rogelio Mita <rogeliomita@activitycentral.com> | 2013-09-12 17:06:13 (GMT) |
---|---|---|
committer | Rogelio Mita <rogeliomita@activitycentral.com> | 2013-09-12 17:06:13 (GMT) |
commit | 45e952392e740da72018cb413591e0a09c50c65d (patch) | |
tree | e5a2940a3b6d04b567559c8f8688e1769d00c9c9 /webapp/polls/tests/poll_tests.py | |
parent | 713607e49509c1068397420e4d31615ae5218321 (diff) |
Better checking for image options
Diffstat (limited to 'webapp/polls/tests/poll_tests.py')
-rw-r--r-- | webapp/polls/tests/poll_tests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/webapp/polls/tests/poll_tests.py b/webapp/polls/tests/poll_tests.py index 53446cd..af70446 100644 --- a/webapp/polls/tests/poll_tests.py +++ b/webapp/polls/tests/poll_tests.py @@ -485,8 +485,9 @@ class AddResultFilesTest(MongoTestCase): class MockImageFileInterface(object): - def __init__(self): - self.name = "a_name.jpg" + def __init__(self, name="a_name.jpg", size=(250, 250)): + self.name = name + self.size = size class CleanDataMustCheckImagesTypes(TestCase): |