Commit 5dfbd1d4 authored by Łukasz Nowak's avatar Łukasz Nowak

- no need to have own login - ERP5TypeTestCase user has all required roles


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29832 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b3ba368e
...@@ -129,12 +129,6 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase): ...@@ -129,12 +129,6 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
self.createCategories() self.createCategories()
self.validateRules() self.validateRules()
def login(self):
uf = self.getPortal().acl_users
uf._doAddUser('alex', '', ['Manager', 'Owner', 'Assignor'], [])
user = uf.getUserById('alex').__of__(uf)
newSecurityManager(None, user)
def createCategories(self) : def createCategories(self) :
""" create all categories that are needed for this test. """ create all categories that are needed for this test.
It uses getCategoriesToCreate, so you should overload this method. It uses getCategoriesToCreate, so you should overload this method.
......
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