[Erp5-report] r36499 ivan - in /erp5/trunk/products/ERP5OOo/tests: ./ test_document/
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jun 22 10:52:51 CEST 2010
Author: ivan
Date: Tue Jun 22 10:52:47 2010
New Revision: 36499
URL: http://svn.erp5.org?rev=36499&view=rev
Log:
Test extensible content of some DMS types.
Added:
erp5/trunk/products/ERP5OOo/tests/test_document/TEST-en-003.odp (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=36499&r1=36498&r2=36499&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] Tue Jun 22 10:52:47 2010
@@ -1786,6 +1786,27 @@ return 1
'TEST-en-002.png'
)
+ def test_getExtensibleContent(self):
+ """
+ Test extensible content of some DMS types. As this is possible only on URL traversal use publish.
+ """
+ # Create document with good content
+ document = self.portal.document_module.newContent(portal_type='Presentation')
+ upload_file = makeFileUpload('TEST-en-003.odp')
+ document.edit(file=upload_file)
+ self.stepTic()
+ self.assertEquals('converted', document.getExternalProcessingState())
+ for object_url in ('img1.html', 'img2.html', 'text1.html', 'text2.html'):
+ response = self.publish('%s/%s' %(document.getPath(), object_url),
+ basic='ERP5TypeTestCase:')
+ self.assertTrue('Status: 200 OK' in response.getOutput())
+ # OOod produced HTML navigation, test it
+ self.assertTrue('First page' in response.getBody())
+ self.assertTrue('Back' in response.getBody())
+ self.assertTrue('Continue' in response.getBody())
+ self.assertTrue('Last page' in response.getBody())
+
+
class TestDocumentWithSecurity(TestDocumentMixin):
username = 'yusei'
Added: erp5/trunk/products/ERP5OOo/tests/test_document/TEST-en-003.odp
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/test_document/TEST-en-003.odp?rev=36499&view=auto
==============================================================================
Binary file - no diff available.
Propchange: erp5/trunk/products/ERP5OOo/tests/test_document/TEST-en-003.odp
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
More information about the Erp5-report
mailing list