From 8a445824c763d174cc166dfd7e1e01d9eb261c02 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Thu, 31 Aug 2006 09:20:11 +0000
Subject: [PATCH] make sure the user is logged in before creating checkbook and
 check

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9574 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../tests/testERP5BankingCheckPayment.py      | 24 +++++++++----------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/product/ERP5Banking/tests/testERP5BankingCheckPayment.py b/product/ERP5Banking/tests/testERP5BankingCheckPayment.py
index c64780a39a..0ca53932cf 100755
--- a/product/ERP5Banking/tests/testERP5BankingCheckPayment.py
+++ b/product/ERP5Banking/tests/testERP5BankingCheckPayment.py
@@ -136,18 +136,6 @@ class TestERP5BankingCheckPayment(TestERP5BankingMixin, ERP5TypeTestCase):
                                                  currency=self.currency_1,
                                                  amount=100000)
 
-    # create a check
-    self.checkbook_1 = self.createCheckbook(id= 'checkbook_1',
-                                            vault=self.bi_counter,
-                                            bank_account=self.bank_account_1,
-                                            min=50,
-                                            max=100,
-                                            )
-
-    self.check_1 = self.createCheck(id='check_1',
-                                    reference='50',
-                                    checkbook=self.checkbook_1)
-
     # open counter date and counter
     self.openCounterDate(site=self.paris)
     self.openCounter(site=self.bi_counter_vault)
@@ -167,6 +155,18 @@ class TestERP5BankingCheckPayment(TestERP5BankingMixin, ERP5TypeTestCase):
     self.logout()
     self.login('super_user')
 
+    # create a check
+    self.checkbook_1 = self.createCheckbook(id= 'checkbook_1',
+                                            vault=self.bi_counter,
+                                            bank_account=self.bank_account_1,
+                                            min=50,
+                                            max=100,
+                                            )
+
+    self.check_1 = self.createCheck(id='check_1',
+                                    reference='50',
+                                    checkbook=self.checkbook_1)
+
 
   def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd):
     """
-- 
2.30.9