Commit 6c3f73fe authored by Nicolas Delaby's avatar Nicolas Delaby

Create image in test instead of relying image already exists in module.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35096 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a6174ddb
No related merge requests found
......@@ -1780,9 +1780,8 @@ class TestDocumentWithSecurity(TestDocumentMixin):
#Now lets check that when we try to view an image as thumbnail,
#the sizes of that image are the ones defined in user preference
image_portal_type = 'Image'
image_list = image = self.portal.getDefaultModule(image_portal_type)\
.contentValues()
image = image[0]
image_module = self.portal.getDefaultModule(image_portal_type)
image = image_module.newContent(portal_type=image_portal_type)
self.assertEqual('thumbnail',
image.Image_view._getOb("image_view", None).get_value('image_display'))
self.assertEqual((user_pref.getPreferredThumbnailImageWidth(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment