Commit b4433ba1 authored by Mario Jorge Amaral's avatar Mario Jorge Amaral

New test to getColumnItemList.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@45529 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9f0f9bdd
......@@ -84,8 +84,10 @@ class TestOOGranulator(HandlerTestCase):
def testGetColumnItemList(self):
"""Test if getColumnItemList() returns the right table columns list"""
self.assertRaises(NotImplementedError, self.oogranulator.getColumnItemList,
'table_id')
data = open('./data/granulate_table_test.odt').read()
oogranulator = OOGranulator(data, 'odt')
self.assertEquals([[0, 'Name'], [1, 'Country']],
oogranulator.getColumnItemList('SoccerTeams'))
def testGetLineItemList(self):
"""Test if getLineItemList() returns the right table lines list"""
......
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