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
...@@ -1375,14 +1375,14 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -1375,14 +1375,14 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
document_module = portal.document_module document_module = portal.document_module
# create Person objects and add pseudo local security # create Person objects and add pseudo local security
person1 = self.createUser(reference='user1') person1 = self.createUser(reference='contributor1')
document_module.manage_setLocalRoles('user1', ['Assignor',]) document_module.manage_setLocalRoles('contributor1', ['Assignor',])
person2 = self.createUser(reference='user2') person2 = self.createUser(reference='contributor2')
document_module.manage_setLocalRoles('user2', ['Assignor',]) document_module.manage_setLocalRoles('contributor2', ['Assignor',])
self.stepTic() self.stepTic()
# login as first one # login as first one
ERP5TypeTestCase.login(self, 'user1') ERP5TypeTestCase.login(self, 'contributor1')
doc = document_module.newContent(portal_type='File', doc = document_module.newContent(portal_type='File',
title='Test1') title='Test1')
self.stepTic() self.stepTic()
...@@ -1391,7 +1391,7 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -1391,7 +1391,7 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
doc.getContributorValueList()) doc.getContributorValueList())
# login as second one # login as second one
ERP5TypeTestCase.login(self, 'user2') ERP5TypeTestCase.login(self, 'contributor2')
doc.edit(title='Test2') doc.edit(title='Test2')
self.stepTic() self.stepTic()
self.login() 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