Commit 5226cb26 authored by Nicolas Dumazet's avatar Nicolas Dumazet

remove login and loginUser methods

login() method adds nothing more than ERP5TypeTestCase.login, and loginUser
looks unused.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31893 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ba1841d5
......@@ -86,27 +86,6 @@ class ResourceVariationTestCase(ERP5TypeTestCase):
resource.getPortalType(), **kw)
return iv
def login(self):
"""
Login Manager roles.
"""
uf = self.getPortal().acl_users
uf._doAddUser('testmanager', 'test', ['Manager', 'Assignee', 'Assignor',
'Associate', 'Auditor', 'Author'], [])
user = uf.getUserById('testmanager').__of__(uf)
newSecurityManager(None, user)
def loginUser(self):
"""
Login without Manager roles.
"""
uf = self.getPortal().acl_users
uf._doAddUser('user', 'user',
['Assignee', 'Assignor', 'Associate',
'Auditor', 'Author'], [])
user = uf.getUserById('user').__of__(uf)
newSecurityManager(None, user)
def afterSetUp(self):
"""
- create categories
......
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