Commit 011cd45f authored by Mario Jorge Amaral's avatar Mario Jorge Amaral

The methods implemented by Manager have changed.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@44687 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 010a69d0
...@@ -55,17 +55,16 @@ class TestInterface(unittest.TestCase): ...@@ -55,17 +55,16 @@ class TestInterface(unittest.TestCase):
"""Test if Manager implements ITableGranulator""" """Test if Manager implements ITableGranulator"""
self.assertTrue(ITableGranulator.implementedBy(Manager)) self.assertTrue(ITableGranulator.implementedBy(Manager))
method_list = ['getLineItemList', method_list = ['getLineItemList',
'getTableItem', 'getTable',
'getTableItemList', 'getTableItemList',
'getColumnItemList', 'getColumnItemList']
'getTableMatrix']
self.assertEquals(sorted(ITableGranulator.names()), sorted(method_list)) self.assertEquals(sorted(ITableGranulator.names()), sorted(method_list))
def testITextGranulator(self): def testITextGranulator(self):
"""Test if Manager implements ITextGranulator""" """Test if Manager implements ITextGranulator"""
self.assertTrue(ITextGranulator.implementedBy(Manager)) self.assertTrue(ITextGranulator.implementedBy(Manager))
method_list = ['getChapterItemList', method_list = ['getChapterItemList',
'getParagraphItem', 'getParagraph',
'getChapterItem', 'getChapterItem',
'getParagraphItemList'] 'getParagraphItemList']
self.assertEquals(ITextGranulator.names(), method_list) self.assertEquals(ITextGranulator.names(), method_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