[Erp5-report] r28830 - in /erp5/trunk/products/ERP5OOo: ./ tests/testDms.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Sep 4 17:30:29 CEST 2009
Author: jerome
Date: Fri Sep 4 17:30:25 2009
New Revision: 28830
URL: http://svn.erp5.org?rev=28830&view=rev
Log:
missing test for PDFDocument.getContentInformation
Modified:
erp5/trunk/products/ERP5OOo/ (props changed)
erp5/trunk/products/ERP5OOo/tests/testDms.py
Propchange: erp5/trunk/products/ERP5OOo/
------------------------------------------------------------------------------
bzr:see-revprops = 28830
Modified: erp5/trunk/products/ERP5OOo/tests/testDms.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testDms.py?rev=28830&r1=28829&r2=28830&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] Fri Sep 4 17:30:25 2009
@@ -772,6 +772,15 @@
# it's a valid PNG
self.assertEquals('PNG', image_data[1:4])
+ def test_PDF_content_information(self):
+ upload_file = makeFileUpload('REF-en-001.pdf')
+ document = self.portal.portal_contributions.newContent(file=upload_file)
+ self.assertEquals('PDF', document.getPortalType())
+ content_information = document.getContentInformation()
+ self.assertEquals('1', content_information['Pages'])
+ self.assertEquals('subject', content_information['Subject'])
+ self.assertEquals('title', content_information['Title'])
+
class TestDocumentWithSecurity(ERP5TypeTestCase):
More information about the Erp5-report
mailing list