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
...@@ -1780,9 +1780,8 @@ class TestDocumentWithSecurity(TestDocumentMixin): ...@@ -1780,9 +1780,8 @@ class TestDocumentWithSecurity(TestDocumentMixin):
#Now lets check that when we try to view an image as thumbnail, #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 #the sizes of that image are the ones defined in user preference
image_portal_type = 'Image' image_portal_type = 'Image'
image_list = image = self.portal.getDefaultModule(image_portal_type)\ image_module = self.portal.getDefaultModule(image_portal_type)
.contentValues() image = image_module.newContent(portal_type=image_portal_type)
image = image[0]
self.assertEqual('thumbnail', self.assertEqual('thumbnail',
image.Image_view._getOb("image_view", None).get_value('image_display')) image.Image_view._getOb("image_view", None).get_value('image_display'))
self.assertEqual((user_pref.getPreferredThumbnailImageWidth(), 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