Commit 74259a17 authored by Sebastien Robin's avatar Sebastien Robin

added method login


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2875 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eae234b8
...@@ -122,6 +122,15 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -122,6 +122,15 @@ class ERP5TypeTestCase(PortalTestCase):
""" """
return 0 return 0
def login(self, quiet=0):
"""
Most of the time, we need to login before doing anything
"""
uf = self.getPortal().acl_users
uf._doAddUser('ERP5TypeTestCase', '', ['Manager'], [])
user = uf.getUserById('ERP5TypeTestCase').__of__(uf)
newSecurityManager(None, user)
def setUp(self): def setUp(self):
'''Sets up the fixture. Do not override, '''Sets up the fixture. Do not override,
use the hooks instead. use the hooks instead.
......
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