[Erp5-report] r42198 gabriel - /erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/tests/
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jan 11 14:06:08 CET 2011
Author: gabriel
Date: Tue Jan 11 14:06:07 2011
New Revision: 42198
URL: http://svn.erp5.org?rev=42198&view=rev
Log:
refactor because if Fault exception is raised, data_output is not created
Modified:
erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/tests/testAllFormats.py
Modified: erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/tests/testAllFormats.py
URL: http://svn.erp5.org/erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/tests/testAllFormats.py?rev=42198&r1=42197&r2=42198&view=diff
==============================================================================
--- erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/tests/testAllFormats.py [utf8] (original)
+++ erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/tests/testAllFormats.py [utf8] Tue Jan 11 14:06:07 2011
@@ -77,10 +77,10 @@ class TestAllFormats(CloudoooTestCase):
data_output = self.proxy.convertFile(encodestring(data),
source_format,
extension[0])
+ magic_result = file_detector.from_buffer(decodestring(data_output))
+ self.assertEquals(magic_result.endswith(": empty"), False, magic_result)
except Fault, err:
fault_list.append((source_format, extension[0], err.faultString))
- magic_result = file_detector.from_buffer(decodestring(data_output))
- self.assertEquals(magic_result.endswith(": empty"), False, magic_result)
if fault_list != []:
self.fail(fault_list)
More information about the Erp5-report
mailing list