Commit 5a7a5941 authored by Nicolas Dumazet's avatar Nicolas Dumazet

move user creation in afterSetup, delete useless login() method.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29784 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 286e45df
......@@ -52,16 +52,15 @@ class TestPDMWithSecurity(ERP5TypeTestCase):
self.portal._run_after_setup = True
transaction.commit()
self.tic()
def login(self, quiet=0):
ERP5TypeTestCase.login(self, quiet)
user_folder = self.getPortal().acl_users
user_folder._doAddUser('author', '', ['Auditor', 'Author'], [])
user_folder._doAddUser('assignor', '', ['Auditor', 'Author', 'Assignor'], [])
user_folder._doAddUser('assignee', '', ['Auditor', 'Author', 'Assignee'], [])
transaction.commit()
self.tic()
def changeUser(self, name):
user_folder = self.getPortal().acl_users
user = user_folder.getUserById(name).__of__(user_folder)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment