[Erp5-report] r10827 - /erp5/trunk/products/ERP5Banking/tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Oct 19 15:51:24 CEST 2006


Author: aurel
Date: Thu Oct 19 15:51:22 2006
New Revision: 10827

URL: http://svn.erp5.org?rev=10827&view=rev
Log:
better definition of user
set destination on document

Modified:
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py?rev=10827&r1=10826&r2=10827&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py Thu Oct 19 15:51:22 2006
@@ -116,14 +116,14 @@
     # in order to have an assigment defined which is used to do transition
     # Create an Organisation that will be used for users assignment
     self.checkUserFolderType()
-    self.organisation = self.organisation_module.newContent(id='baobab_org', portal_type='Organisation',
+    self.organisation_1 = self.organisation_module.newContent(id='baobab_org', portal_type='Organisation',
                           function='banking', group='baobab',  site='testsite/paris')
-    self.organisation = self.organisation_module.newContent(id='baobab_org_hq', portal_type='Organisation',
+    self.organisation_2 = self.organisation_module.newContent(id='baobab_org_hq', portal_type='Organisation',
                                                             function='banking', group='baobab',  site='testsite/siege')
     # define the user
     user_dict = {
-        'super_user' : [['Manager'], self.organisation, 'banking/comptable', 'baobab', 'testsite/paris/surface/banque_interne/guichet_1'],
-        'hq_super_user' : [['Manager'], self.organisation, 'banking/comptable', 'baobab', 'testsite/siege/surface/banque_interne/guichet_1']
+        'super_user' : [['Manager'], self.organisation_1, 'banking/comptable', 'baobab', 'testsite/paris/surface/banque_interne/guichet_1'],
+        'hq_super_user' : [['Manager'], self.organisation_2, 'banking/comptable', 'baobab', 'testsite/siege/surface/banque_interne/guichet_1']
       }
     # call method to create this user
     self.createERP5Users(user_dict)
@@ -162,7 +162,8 @@
     self.mutilated_banknote = self.mutilated_banknote_module.newContent(id='mutilated_banknote',
                                                                         portal_type='Mutilated Banknote',
                                                                         source_total_asset_price=0.0,
-                                                                        destination_total_asset_price=0.0
+                                                                        destination_total_asset_price=0.0,
+                                                                        destination_value=self.mutilated_banknote_vault
                                                                         )
     self.stepTic()
     self.assertEqual(len(self.mutilated_banknote_module.objectValues()), 1)
@@ -171,7 +172,7 @@
     self.assertEqual(self.mutilated_banknote.getPortalType(), 'Mutilated Banknote')
     self.assertEqual(self.mutilated_banknote.getSource(), 'site/testsite/paris')
     self.assertEqual(self.mutilated_banknote.getSourceTrade(), 'site/testsite/paris')
-    self.assertEqual(self.mutilated_banknote.getDestination(), None)
+    self.assertEqual(self.mutilated_banknote.getDestination(), self.mutilated_banknote_vault.getRelativeUrl())
 
   def stepTryPlanWithNoLineDefined(self, sequence=None, sequence_list=None, **kw):
     """




More information about the Erp5-report mailing list