Commit 0398575c authored by Mario Jorge Amaral's avatar Mario Jorge Amaral

Change testGetImageItemList to expect the new return of getImageItemList function.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@45554 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1cd82be9
......@@ -109,15 +109,13 @@ class TestOOGranulator(HandlerTestCase):
def testGetImageItemList(self):
"""Test if getImageItemList() returns the right images list"""
image_list = self.oogranulator.getImageItemList()
self.assertEquals([
('10000000000000C80000009C38276C51.jpg', ''),
self.assertEquals([('10000000000000C80000009C38276C51.jpg', ''),
('10000201000000C80000004E7B947D46.png', 'TioLive Logo'),
('10000201000000C80000004E7B947D46.png', ''),
('10000201000000C80000004E7B947D46.png', 'Illustration 1: TioLive Logo'),
# XXX The svg image are stored into odf as svm
('2000004F00004233000013707E7DE37A.svm', 'Figure 1: Python Logo'),
('2000004F00004233000013707E7DE37A.svm', 'Python Logo'),
('10000201000000C80000004E7B947D46.png',
'Illustration 2: Again TioLive Logo'),
], image_list)
'Again TioLive Logo')], image_list)
def testGetImageSuccessfully(self):
"""Test if getImage() returns the right image file successfully"""
......
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