Commit 9db0655a authored by Jérome Perrin's avatar Jérome Perrin

missing test for PDFDocument.getContentInformation


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28830 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cfa3d6e5
......@@ -772,6 +772,15 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
# 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):
......
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