Commit 043d9978 authored by Gabriel Monnerat's avatar Gabriel Monnerat

remove blank lines

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@43733 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dd3c275a
......@@ -516,10 +516,8 @@ class TestServer(HandlerTestCase):
table_list = [['Developers', ''],
['Prices', 'Table 1: Prices table from Mon Restaurant'],
['SoccerTeams', 'Tabela 2: Soccer Teams']]
data = encodestring(open("data/granulate_table_test.odt").read())
granulated_table = self.proxy.getTableItemList(data, "odt")
self.assertEquals(table_list, granulated_table)
def testGetTableItem(self):
......@@ -545,7 +543,6 @@ class TestServer(HandlerTestCase):
['Feijoada', 'R$ 30,00']]
data = encodestring(open("./data/granulate_table_test.odt").read())
matrix_table = self.proxy.getTableMatrix(data, "Prices", "odt")
self.assertEquals(matrix, matrix_table)
def testGetColumnItemList(self):
......@@ -583,7 +580,6 @@ class TestServer(HandlerTestCase):
def testGetParagraphItemList(self):
"""Test if manager can get the list of paragraphs items"""
data = encodestring(open("./data/granulate_test.odt").read())
paragraph_list = self.proxy.getParagraphItemList(data, "odt")
self.assertEquals([[0, 'P3'], [1, 'P1'], [2, 'P12'], [3, 'P6'], [4, 'P7'],
[5, 'P8'], [6, 'P6'], [7, 'P6'], [8, 'P13'], [9, 'P9'],
......@@ -596,20 +592,17 @@ class TestServer(HandlerTestCase):
def testGetParagraphItem(self):
"""Test if manager can get a paragraph"""
data = encodestring(open("./data/granulate_test.odt").read())
paragraph = self.proxy.getParagraphItem(data, 1, "odt")
self.assertEquals(['', 'P1'], paragraph)
def testGetChapterItemList(self):
"""Test if manager can get the list of chapters list"""
data = encodestring(open("./data/granulate_test.odt").read())
self.assertRaises(Fault, self.proxy.getChapterItemList, (data, "odt"))
def testGetChapterItem(self):
"""Test if manager can get a chapter"""
data = encodestring(open("./data/granulate_test.odt").read())
self.assertRaises(Fault, self.proxy.getChapterItem, ("id", data, "odt"))
......
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