Commit 14abcd52 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_data_notebook: Refactor test because mime_type for an invalid image...

erp5_data_notebook: Refactor test because mime_type for an invalid image shouldn't be dependent on the filename only
parent e8a6fc84
...@@ -392,4 +392,6 @@ context.Base_displayImage(image_object=image) ...@@ -392,4 +392,6 @@ context.Base_displayImage(image_object=image)
) )
self.assertEquals(result['result_string'].rstrip(), base64.b64encode(data)) self.assertEquals(result['result_string'].rstrip(), base64.b64encode(data))
self.assertEquals(result['mime_type'], 'image/png') # Mime_type shouldn't be image/png just because of filename, instead it is
# dependent on file and file data
self.assertNotEqual(result['mime_type'], 'image/png')
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