Commit 00bcac2c authored by Romain Courteaud's avatar Romain Courteaud

Check that the cloned document is in converted state.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19062 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent da6e209f
......@@ -501,15 +501,15 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
self.tic()
self.assertEquals('converted', document.getExternalProcessingState())
# Clone document
# Clone a converted document
container = document.getParentValue()
clipboard = container.manage_copyObjects(ids=[document.getId()])
paste_result = container.manage_pasteObjects(cb_copy_data=clipboard)
new_document = container[paste_result[0]['new_id']]
self.assertEquals('uploaded', new_document.getExternalProcessingState())
self.assertEquals('converted', new_document.getExternalProcessingState())
get_transaction().commit()
self.assertEquals('uploaded', new_document.getExternalProcessingState())
self.assertEquals('converted', new_document.getExternalProcessingState())
self.tic()
self.assertEquals('converted', new_document.getExternalProcessingState())
......
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