Commit 7ea29fe6 authored by Hugo H. Maia Vieira's avatar Hugo H. Maia Vieira

Refactor testITableGranulator

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@41842 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 32d1fab9
...@@ -56,12 +56,12 @@ class TestInterface(unittest.TestCase): ...@@ -56,12 +56,12 @@ class TestInterface(unittest.TestCase):
def testITableGranulator(self): def testITableGranulator(self):
"""Test if OOGranulate implements ITableGranulator""" """Test if OOGranulate implements ITableGranulator"""
self.assertEquals(ITableGranulator.implementedBy(OOGranulate), True) self.assertEquals(ITableGranulator.implementedBy(OOGranulate), True)
method_list = ['getColumnItemList', method_list = ['getLineItemList',
'getLineItemList',
'getTableItem', 'getTableItem',
'getTableItemList', 'getTableItemList',
'getColumnItemList',
'getTableMatrix'] 'getTableMatrix']
self.assertEquals(ITableGranulator.names(), method_list) self.assertEquals(ITableGranulator.names().sort(), method_list.sort())
def testITextGranulator(self): def testITextGranulator(self):
"""Test if OOGranulate implements ITextGranulator""" """Test if OOGranulate implements ITextGranulator"""
......
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