[Erp5-report] r43589 mario.amaral - /erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/tests/
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 22 23:56:00 CET 2011
Author: mario.amaral
Date: Tue Feb 22 23:55:59 2011
New Revision: 43589
URL: http://svn.erp5.org?rev=43589&view=rev
Log:
Change the assertRaise of testGetChapterItemList and testGetColumnItemList.
Modified:
erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/tests/testOOGranulator.py
Modified: erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/tests/testOOGranulator.py
URL: http://svn.erp5.org/erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/tests/testOOGranulator.py?rev=43589&r1=43588&r2=43589&view=diff
==============================================================================
--- erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/tests/testOOGranulator.py [utf8] (original)
+++ erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/tests/testOOGranulator.py [utf8] Tue Feb 22 23:55:59 2011
@@ -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)
More information about the Erp5-report
mailing list