From 6c3f73fee065b448332149b3687cc1b7fa539855 Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Fri, 7 May 2010 08:12:36 +0000 Subject: [PATCH] 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 --- product/ERP5OOo/tests/testDms.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/product/ERP5OOo/tests/testDms.py b/product/ERP5OOo/tests/testDms.py index 8dd4e40777..b041a58d00 100644 --- a/product/ERP5OOo/tests/testDms.py +++ b/product/ERP5OOo/tests/testDms.py @@ -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(), -- 2.30.9