Commit d7050f8b authored by Gabriel Monnerat's avatar Gabriel Monnerat

refactor to validate the exceptionw

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@43704 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9f5ee838
...@@ -321,12 +321,7 @@ class TestServer(HandlerTestCase): ...@@ -321,12 +321,7 @@ class TestServer(HandlerTestCase):
is sent""" is sent"""
data = encodestring("") data = encodestring("")
self.assertRaises(Fault, self.proxy.convertFile, (data, '', '')) self.assertRaises(Fault, self.proxy.convertFile, (data, '', ''))
self.assertRaises(Fault, self.proxy.getFileMetadataItemList, (data, ''))
res = self.proxy.getFileMetadataItemList(data, '')
self.assertEquals(res['MIMEType'], "text/plain")
res = decodestring(self.proxy.updateFileMetadata(data, '',
{"Subject": "subject"}))
self.assertEquals(decodestring(res), '')
def testConvertDocumentToInvalidFormat(self): def testConvertDocumentToInvalidFormat(self):
"""Try convert one document for a invalid format""" """Try convert one document for a invalid format"""
......
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