From 3e003b7a26258af0848af578ef20430981c1bbef Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Thu, 30 Sep 2010 12:56:00 +0000 Subject: [PATCH] Replace 'not implemented' log message by something more concrete. The test itself is not very usefull, but I do not want remove it. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38802 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5OOo/tests/testIngestion.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/product/ERP5OOo/tests/testIngestion.py b/product/ERP5OOo/tests/testIngestion.py index 27f50fb8fc..c5a9236204 100644 --- a/product/ERP5OOo/tests/testIngestion.py +++ b/product/ERP5OOo/tests/testIngestion.py @@ -776,11 +776,18 @@ class TestIngestion(ERP5TypeTestCase): def stepExportImage(self, sequence=None, sequence_list=None, **kw): """ - Don't see a way to test it here, Image.index_html makes heavy use - of REQUEST and RESPONSE, and the rest of the implementation is way down - in Zope core + Check we are able to resize images """ - printAndLog('stepExportImage not implemented') + image = self.portal.image_module.six + f = makeFileUpload('TEST-en-002.jpg') + image.edit(file=f) + self.stepTic() + mime, data = image.convert(None) + self.assertEquals(mime, 'image/jpeg') + mime, small_data = image.convert(None, display='small') + mime, large_data = image.convert(None, display='xlarge') + # Check we are able to resize the image. + self.assertTrue(len(small_data) < len(large_data)) def stepCleanUp(self, sequence=None, sequence_list=None, **kw): """ -- 2.30.9