[Erp5-report] r35758 nicolas - in /erp5/trunk/products/ERP5OOo/tests: ./ test_document/
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri May 28 19:02:59 CEST 2010
Author: nicolas
Date: Fri May 28 19:02:52 2010
New Revision: 35758
URL: http://svn.erp5.org?rev=35758&view=rev
Log:
Extend Test of PDF conversion to check that
PDF higher than A3 (surface) can not be converted into Image.
Added:
erp5/trunk/products/ERP5OOo/tests/test_document/TEST.Large.Document.pdf (with props)
Modified:
erp5/trunk/products/ERP5OOo/tests/testDms.py
Modified: erp5/trunk/products/ERP5OOo/tests/testDms.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testDms.py?rev=35758&r1=35757&r2=35758&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] Fri May 28 19:02:52 2010
@@ -169,6 +169,7 @@
"""
Remove everything after each run
"""
+ transaction.abort()
doc_module = self.getDocumentModule()
doc_module.manage_delObjects(list(doc_module.objectIds()))
transaction.commit()
@@ -1696,6 +1697,10 @@
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')
+ upload_file = makeFileUpload('TEST.Large.Document.pdf')
+ document = module.newContent(portal_type=portal_type, file=upload_file)
+ from AccessControl import Unauthorized
+ self.assertRaises(Unauthorized, document.asText)
class TestDocumentWithSecurity(TestDocumentMixin):
Added: erp5/trunk/products/ERP5OOo/tests/test_document/TEST.Large.Document.pdf
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/test_document/TEST.Large.Document.pdf?rev=35758&view=auto
==============================================================================
Binary file - no diff available.
Propchange: erp5/trunk/products/ERP5OOo/tests/test_document/TEST.Large.Document.pdf
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
More information about the Erp5-report
mailing list