From 88decb7679681db2c355d476a9c4717332755d8c Mon Sep 17 00:00:00 2001 From: Rafael Monnerat <rafael@nexedi.com> Date: Mon, 1 Aug 2011 18:28:35 -0300 Subject: [PATCH] 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. --- product/ERP5OOo/tests/testDms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5OOo/tests/testDms.py b/product/ERP5OOo/tests/testDms.py index 921bfe8d1f..b43fd59c90 100644 --- a/product/ERP5OOo/tests/testDms.py +++ b/product/ERP5OOo/tests/testDms.py @@ -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', """ -- 2.30.9