[Erp5-report] r35096 nicolas - /erp5/trunk/products/ERP5OOo/tests/testDms.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri May 7 10:12:36 CEST 2010
Author: nicolas
Date: Fri May 7 10:12:36 2010
New Revision: 35096
URL: http://svn.erp5.org?rev=35096&view=rev
Log:
Create image in test instead of relying image already exists in module.
Modified:
erp5/trunk/products/ERP5OOo/tests/testDms.py
Modified: erp5/trunk/products/ERP5OOo/tests/testDms.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testDms.py?rev=35096&r1=35095&r2=35096&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] Fri May 7 10:12:36 2010
@@ -1780,9 +1780,8 @@
#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(),
More information about the Erp5-report
mailing list