[Erp5-report] r14006 - /erp5/trunk/products/ERP5/tests/testProductionOrder.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Apr 6 15:34:52 CEST 2007
Author: yo
Date: Fri Apr 6 15:34:50 2007
New Revision: 14006
URL: http://svn.erp5.org?rev=14006&view=rev
Log:
Add more documentation about test_05_testCutPasteInAnotherContainer.
Modified:
erp5/trunk/products/ERP5/tests/testProductionOrder.py
Modified: erp5/trunk/products/ERP5/tests/testProductionOrder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testProductionOrder.py?rev=14006&r1=14005&r2=14006&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testProductionOrder.py (original)
+++ erp5/trunk/products/ERP5/tests/testProductionOrder.py Fri Apr 6 15:34:50 2007
@@ -1014,8 +1014,29 @@
def test_05_testCutPasteInAnotherContainer(self, quiet=0, run=run_all_test):
"""
- Check that relation are changed when doing a copy/paste,
- on supply chain
+ Check that relations are changed when doing a copy/paste,
+ on a supply chain.
+
+ The point in this test is that internal relations should be updated
+ when copying an object. Suppose that a document D1 contains sub-objects
+ S1_1 and S1_2, and S1_1 is related to S1_2. When copying D1 to D2,
+ S2_1 and S2_2 are also copied from S1_1 and S1_2. Now S2_1 should be
+ related to S2_2, instead of S1_2.
+
+ Good:
+
+ D1 -+- S1_1 D1 -+- S1_1 D2 -+- S2_1
+ | | => | | | |
+ | v | v | v
+ +- S1_2 +- S1_2 +- S2_2
+
+ Bad:
+
+ D1 -+- S1_1 D1 -+- S1_1 D2 -+- S2_1
+ | | => | | __|_/
+ | v | v / |
+ +- S1_2 +- S1_2<--/ +- S2_2
+
"""
if not run: return
sequence_list = SequenceList()
More information about the Erp5-report
mailing list