From 00bcac2cd8073f1c77920cd334138faefb7a116b Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Tue, 5 Feb 2008 15:17:27 +0000
Subject: [PATCH] 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
---
 product/ERP5OOo/tests/testDms.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/product/ERP5OOo/tests/testDms.py b/product/ERP5OOo/tests/testDms.py
index c98547f6a7..89eb4a69e6 100644
--- a/product/ERP5OOo/tests/testDms.py
+++ b/product/ERP5OOo/tests/testDms.py
@@ -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())
 
-- 
2.30.9