From bcabf766fce9430f79055c1e9cf1bd9640128e88 Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Fri, 18 Sep 2009 15:46:29 +0000
Subject: [PATCH] Organisations are now automaticaly created, so just fetch
 them.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29111 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../tests/testERP5BankingMonetaryDestruction.py | 17 +++--------------
 1 file changed, 3 insertions(+), 14 deletions(-)

diff --git a/product/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py b/product/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py
index 7fd3c5c0a6..954f0654c2 100644
--- a/product/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py
+++ b/product/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py
@@ -185,20 +185,9 @@ class TestERP5BankingMonetaryDestruction(TestERP5BankingMixin, ERP5TypeTestCase)
     # 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='site_P10', portal_type='Organisation',
-                                                            function='banking', group='baobab',
-                                                            site='testsite/paris',
-                                                            region='france')
-
-    self.organisation_externe = self.organisation_module.newContent(id='site_S10', portal_type='Organisation',
-                                                                    function='banking', group='baobab',
-                                                                    site='testsite/madrid',
-                                                                    region='spain')
-
-    self.organisation_auxiliaire = self.organisation_module.newContent(id='site_P11', portal_type='Organisation',
-                                                            function='banking', group='baobab',
-                                                            site='testsite/auxiliaire/lyon',
-                                                            region='france')
+    self.organisation = self.organisation_module['site_P10']
+    self.organisation_externe = self.organisation_module['site_S10']
+    self.organisation_auxiliaire = self.organisation_module['site_P11']
 
     # define the user
     user_dict = {
-- 
2.30.9