Commit 5b629e44 authored by Gabriel Monnerat's avatar Gabriel Monnerat

update docstrings

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@43969 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5d15fa20
...@@ -570,7 +570,7 @@ class TestServer(HandlerTestCase): ...@@ -570,7 +570,7 @@ class TestServer(HandlerTestCase):
self.assertEquals(original_image, geted_image) self.assertEquals(original_image, geted_image)
def testGetParagraphItemList(self): def testGetParagraphItemList(self):
"""Test if manager can get the list of paragraphs items""" """Test if paragraphs are extracted correctly from document"""
data = encodestring(open("./data/granulate_test.odt").read()) data = encodestring(open("./data/granulate_test.odt").read())
paragraph_list = self.proxy.getParagraphItemList(data, "odt") paragraph_list = self.proxy.getParagraphItemList(data, "odt")
self.assertEquals([[0, 'P3'], [1, 'P1'], [2, 'P12'], [3, 'P6'], [4, 'P7'], self.assertEquals([[0, 'P3'], [1, 'P1'], [2, 'P12'], [3, 'P6'], [4, 'P7'],
...@@ -588,7 +588,7 @@ class TestServer(HandlerTestCase): ...@@ -588,7 +588,7 @@ class TestServer(HandlerTestCase):
self.assertEquals(['', 'P1'], paragraph) self.assertEquals(['', 'P1'], paragraph)
def testGetChapterItemList(self): def testGetChapterItemList(self):
"""Test if manager can get the list of chapters list""" """Test if the chapters list is extracted correctly from document"""
data = encodestring(open("./data/granulate_chapters_test.odt").read()) data = encodestring(open("./data/granulate_chapters_test.odt").read())
chapter_list = self.proxy.getChapterItemList(data, "odt") chapter_list = self.proxy.getChapterItemList(data, "odt")
self.assertEquals([[0, 'Title 0'], [1, 'Title 1'], [2, 'Title 2'], self.assertEquals([[0, 'Title 0'], [1, 'Title 1'], [2, 'Title 2'],
......
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