Commit 921ca3b3 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

follow run_generate() return format.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@42576 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9c476545
...@@ -73,7 +73,7 @@ class TestAllFormatsERP5Compatibility(CloudoooTestCase): ...@@ -73,7 +73,7 @@ class TestAllFormatsERP5Compatibility(CloudoooTestCase):
encodestring(data), encodestring(data),
None, None,
extension, extension,
mime_type) mime_type)[1]['data']
magic_result = file_detector.from_buffer(decodestring(data_output)) magic_result = file_detector.from_buffer(decodestring(data_output))
file_is_empty = magic_result.endswith(": empty") file_is_empty = magic_result.endswith(": empty")
if file_is_empty: if file_is_empty:
......
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