Commit 5282108a authored by Mario Jorge Amaral's avatar Mario Jorge Amaral

Change the assertRaise of testGetChapterItemList and testGetColumnItemList.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@43589 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 59765d3a
......@@ -82,8 +82,14 @@ class TestOOGranulator(HandlerTestCase):
table_data = oogranulator.getTableItem('NonExistentTable')
self.assertEquals(table_data, None)
def testGetTableMatrix(self):
"""Test if getTableMatrix() returns the right matrix"""
def testGetColumnItemList(self):
"""Test if getColumnItemList() returns the right table columns list"""
self.assertRaises(NotImplementedError, self.oogranulator.getColumnItemList,
'table_id')
def testGetLineItemList(self):
"""Test if getLineItemList() returns the right table lines list"""
data = open('./data/granulate_table_test.odt').read()
oogranulator = OOGranulator(data, 'odt')
matrix = [['Name', 'Phone', 'Email'],
......@@ -167,15 +173,12 @@ class TestOOGranulator(HandlerTestCase):
def testGetChapterItemList(self):
"""Test if getChapterItemList() returns the right chapters list"""
self.assertRaises(NotImplementedError, self.oogranulator.getChapterItemList,
'file')
self.assertRaises(NotImplementedError, self.oogranulator.getChapterItemList)
def testGetChapterItem(self):
"""Test if getChapterItem() returns the right chapter"""
self.assertRaises(NotImplementedError, self.oogranulator.getChapterItem,
'file',
'chapter_id')
def test_suite():
return make_suite(TestOOGranulator)
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