Commit b945fe63 authored by Sebastien Robin's avatar Sebastien Robin

we should login in order to add content


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2872 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 665b0a40
......@@ -77,6 +77,15 @@ class Test(ERP5TypeTestCase):
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ',0,message)
def afterSetUp(self):
self.login()
def login(self, quiet=0):
uf = self.getPortal().acl_users
uf._doAddUser('seb', '', ['Manager'], [])
user = uf.getUserById('seb').__of__(uf)
newSecurityManager(None, user)
def getSaleOrderModule(self):
return getattr(self.getPortal(),'sale_order_module',None)
......
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