Commit 88decb76 authored by Rafael Monnerat's avatar Rafael Monnerat

Minor change on expected conversion to text

The change from ocropus to tesseract as the conversor application
responsable  to convert image to text, made this tinny difference
between the outputs.

The difference was manually tested by Rafael to verify that it was caused
by the change of conversor application.
parent 974c55e9
......@@ -1330,7 +1330,7 @@ class TestDocument(TestDocumentMixin):
upload_file = makeFileUpload('cmyk_sample.jpg')
document = self.portal.portal_contributions.newContent(file=upload_file)
self.assertEquals('Image', document.getPortalType())
self.assertEquals('ERP5 is a free software.\n', document.asText())
self.assertEquals('ERP5 is a free software\n\n', document.asText())
def test_Base_showFoundText(self):
# Create document with good content
......@@ -1841,7 +1841,7 @@ document.write('<sc'+'ript type="text/javascript" src="http://somosite.bg/utb.ph
module = self.portal.getDefaultModule(portal_type)
upload_file = makeFileUpload('TEST.Embedded.Image.pdf')
document = module.newContent(portal_type=portal_type, file=upload_file)
self.assertEquals(document.asText(), 'ERP5 is a free software.\n')
self.assertEquals(document.asText(), 'ERP5 is a free software\n\n')
def createRestrictedSecurityHelperScript(self):
script_content_list = ['format=None, **kw', """
......
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