From 5a21d9faf6dc9a0d95c90639cae0a0fba71ae807 Mon Sep 17 00:00:00 2001
From: Nicolas Dumazet <nicolas.dumazet@nexedi.com>
Date: Thu, 15 Oct 2009 14:40:05 +0000
Subject: [PATCH] add a user_name parameter to the login method

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29683 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/tests/ERP5TypeTestCase.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5Type/tests/ERP5TypeTestCase.py b/product/ERP5Type/tests/ERP5TypeTestCase.py
index 1a8a8b6579..55051814a7 100644
--- a/product/ERP5Type/tests/ERP5TypeTestCase.py
+++ b/product/ERP5Type/tests/ERP5TypeTestCase.py
@@ -277,11 +277,11 @@ class ERP5TypeTestCase(PortalTestCase):
       """
       return 0
 
-    def login(self, quiet=0):
+    def login(self, user_name='ERP5TypeTestCase', quiet=0):
       """
       Most of the time, we need to login before doing anything
       """
-      PortalTestCase.login(self, 'ERP5TypeTestCase')
+      PortalTestCase.login(self, user_name)
 
     def _setupUser(self):
       '''Creates the default user.'''
-- 
2.30.9