Commit 9daf68f7 authored by Ivan Tyagov's avatar Ivan Tyagov

Test extensible content of some DMS types.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36499 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 007f2e0f
......@@ -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'
......
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