Commit 9f8c7c28 authored by Nicolas Delaby's avatar Nicolas Delaby

Assert that image content is strictly the same

parent 13603d85
......@@ -322,10 +322,11 @@ class TestFormPrintoutAsODG(TestFormPrintoutMixin):
# check the image is in the odg file
try:
builder.extract("Pictures/0.png")
image_data = builder.extract("Pictures/0.png")
except KeyError:
self.fail('image "Pictures/0.png" not found in odg document')
self.assertEquals(image.getData(), image_data,
'%s != %s' % (len(image.getData()), len(image_data)))
content = etree.XML(content_xml)
image_frame_xpath = '//draw:frame[@draw:name="image_view"]'
image_frame_list = content.xpath(image_frame_xpath, namespaces=content.nsmap)
......
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