Commit fde15f01 authored by Priscila Manhaes's avatar Priscila Manhaes

solve zip problem in convert

parent 2a9aefac
...@@ -33,11 +33,12 @@ class TestCase(unittest.TestCase): ...@@ -33,11 +33,12 @@ class TestCase(unittest.TestCase):
return mimetype return mimetype
def _testConvertFile(self, input_url, source_format, destination_format, def _testConvertFile(self, input_url, source_format, destination_format,
destination_mimetype): destination_mimetype, zip=False):
""" Generic test for converting file """ """ Generic test for converting file """
output_data = self.proxy.convertFile(encodestring(open(input_url).read()), output_data = self.proxy.convertFile(encodestring(open(input_url).read()),
source_format, source_format,
destination_format) destination_format,
zip)
file_type = self._getFileType(output_data) file_type = self._getFileType(output_data)
self.assertEquals(file_type, destination_mimetype) self.assertEquals(file_type, destination_mimetype)
......
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