Commit 926b4bdd authored by Ivan Tyagov's avatar Ivan Tyagov

Do not user overlapping persistent Persons' references between tests.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33492 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ea043fb2
No related merge requests found
......@@ -1375,14 +1375,14 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
document_module = portal.document_module
# create Person objects and add pseudo local security
person1 = self.createUser(reference='user1')
document_module.manage_setLocalRoles('user1', ['Assignor',])
person2 = self.createUser(reference='user2')
document_module.manage_setLocalRoles('user2', ['Assignor',])
person1 = self.createUser(reference='contributor1')
document_module.manage_setLocalRoles('contributor1', ['Assignor',])
person2 = self.createUser(reference='contributor2')
document_module.manage_setLocalRoles('contributor2', ['Assignor',])
self.stepTic()
# login as first one
ERP5TypeTestCase.login(self, 'user1')
ERP5TypeTestCase.login(self, 'contributor1')
doc = document_module.newContent(portal_type='File',
title='Test1')
self.stepTic()
......@@ -1391,7 +1391,7 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
doc.getContributorValueList())
# login as second one
ERP5TypeTestCase.login(self, 'user2')
ERP5TypeTestCase.login(self, 'contributor2')
doc.edit(title='Test2')
self.stepTic()
self.login()
......
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