Commit 12bc0b89 authored by Nicolas Delaby's avatar Nicolas Delaby

Cleanup trailing space


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@42065 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c536de75
...@@ -59,9 +59,9 @@ class TestServer(CloudoooTestCase): ...@@ -59,9 +59,9 @@ class TestServer(CloudoooTestCase):
['txt', 'Text'], ['txt', 'Text Encoded'], ['txt', 'Text'], ['txt', 'Text Encoded'],
['xhtml', 'XHTML'], ['pdb', 'AportisDoc (Palm)'], ['xhtml', 'XHTML'], ['pdb', 'AportisDoc (Palm)'],
['psw', 'Pocket Word']] ['psw', 'Pocket Word']]
self.text_expected_list.sort() self.text_expected_list.sort()
self.presentation_expected_list = [['bmp', 'BMP - Windows Bitmap'], self.presentation_expected_list = [['bmp', 'BMP - Windows Bitmap'],
['emf', 'EMF - Enhanced Metafile'], ['emf', 'EMF - Enhanced Metafile'],
['eps', 'EPS - Encapsulated PostScript'], ['eps', 'EPS - Encapsulated PostScript'],
...@@ -96,9 +96,9 @@ class TestServer(CloudoooTestCase): ...@@ -96,9 +96,9 @@ class TestServer(CloudoooTestCase):
['tiff', 'TIFF - Tagged Image File Format'], ['tiff', 'TIFF - Tagged Image File Format'],
['wmf', 'WMF - Windows Metafile'], ['wmf', 'WMF - Windows Metafile'],
['xhtml', 'XHTML'], ['xpm', 'XPM - X PixMap']] ['xhtml', 'XHTML'], ['xpm', 'XPM - X PixMap']]
self.presentation_expected_list.sort() self.presentation_expected_list.sort()
def _testConvertFile(self, input_url, output_url, def _testConvertFile(self, input_url, output_url,
source_format, destination_format, source_format, destination_format,
stdout_msg, zip=False): stdout_msg, zip=False):
...@@ -312,7 +312,7 @@ class TestServer(CloudoooTestCase): ...@@ -312,7 +312,7 @@ class TestServer(CloudoooTestCase):
'py', 'py',
'pdf', 'pdf',
'PDF document, version 1.4\n') 'PDF document, version 1.4\n')
def testSendEmptyRequest(self): def testSendEmptyRequest(self):
"""Test to verify if the behavior of server is normal when a empty string """Test to verify if the behavior of server is normal when a empty string
is sent""" is sent"""
...@@ -325,7 +325,7 @@ class TestServer(CloudoooTestCase): ...@@ -325,7 +325,7 @@ class TestServer(CloudoooTestCase):
msg = "This format is not supported or is invalid" msg = "This format is not supported or is invalid"
self.assertTrue(err.faultString.endswith(msg), self.assertTrue(err.faultString.endswith(msg),
"ConvertFile\n" + err.faultString) "ConvertFile\n" + err.faultString)
res = self.proxy.getFileMetadataItemList(data, '') res = self.proxy.getFileMetadataItemList(data, '')
self.assertEquals(res['MIMEType'], "text/plain") self.assertEquals(res['MIMEType'], "text/plain")
res = decodestring(self.proxy.updateFileMetadata(data, '', res = decodestring(self.proxy.updateFileMetadata(data, '',
...@@ -343,7 +343,7 @@ class TestServer(CloudoooTestCase): ...@@ -343,7 +343,7 @@ class TestServer(CloudoooTestCase):
err_str = err.faultString err_str = err.faultString
self.assertTrue(err_str.endswith(error_msg), self.assertTrue(err_str.endswith(error_msg),
"%s\n%s" % (error_msg, err_str)) "%s\n%s" % (error_msg, err_str))
def testConvertDocumentToImpossibleFormat(self): def testConvertDocumentToImpossibleFormat(self):
"""Try convert one document to format not possible""" """Try convert one document to format not possible"""
data = open(join('data','test.odp'),'r').read() data = open(join('data','test.odp'),'r').read()
...@@ -508,7 +508,7 @@ class TestServer(CloudoooTestCase): ...@@ -508,7 +508,7 @@ class TestServer(CloudoooTestCase):
self.assertEquals(response_code, 200) self.assertEquals(response_code, 200)
self.assertEquals(response_dict['meta']['title'], self.assertEquals(response_dict['meta']['title'],
"Namie's working record") "Namie's working record")
def testRunSetMetadataFailResponse(self): def testRunSetMetadataFailResponse(self):
"""Test run_setmetadata method with invalid document""" """Test run_setmetadata method with invalid document"""
data = open(join('data','testMetadata.odt'),'r').read()[:100] data = open(join('data','testMetadata.odt'),'r').read()[:100]
......
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