Commit 70cc1788 authored by Nicolas Dumazet's avatar Nicolas Dumazet

use ERP5TypeTestCase.login method


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31699 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 045aa79c
......@@ -108,15 +108,12 @@ class TestXHTML(ERP5TypeTestCase):
def afterSetUp(self):
self.portal = self.getPortal()
self.login()
self.enableDefaultSitePreference()
def login(self):
uf = self.getPortal().acl_users
uf._doAddUser('seb', '', ['Manager'], [])
uf._doAddUser('ERP5TypeTestCase', '', ['Manager'], [])
user = uf.getUserById('seb').__of__(uf)
newSecurityManager(None, user)
self.login('seb')
self.enableDefaultSitePreference()
def enableDefaultSitePreference(self):
portal_preferences = getToolByName(self.portal, 'portal_preferences')
......
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