Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Douglas
erp5
Commits
7b69856f
Commit
7b69856f
authored
Jun 27, 2011
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add more asserts to validate role and function
parent
3873b687
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
product/ERP5/tests/testERP5Credential.py
product/ERP5/tests/testERP5Credential.py
+3
-0
No files found.
product/ERP5/tests/testERP5Credential.py
View file @
7b69856f
...
@@ -855,6 +855,7 @@ class TestERP5Credential(ERP5TypeTestCase):
...
@@ -855,6 +855,7 @@ class TestERP5Credential(ERP5TypeTestCase):
Credential Request correctly """
Credential Request correctly """
sequence = dict(automatic_call=False)
sequence = dict(automatic_call=False)
self.stepSetCredentialRequestAutomaticApprovalPreferences(sequence)
self.stepSetCredentialRequestAutomaticApprovalPreferences(sequence)
self.stepSetCredentialAssignmentPropertyList()
self._createCredentialRequest()
self._createCredentialRequest()
portal_catalog = self.portal.portal_catalog
portal_catalog = self.portal.portal_catalog
credential_request = portal_catalog.getResultValue(
credential_request = portal_catalog.getResultValue(
...
@@ -862,6 +863,8 @@ class TestERP5Credential(ERP5TypeTestCase):
...
@@ -862,6 +863,8 @@ class TestERP5Credential(ERP5TypeTestCase):
self.assertEquals(credential_request.getFirstName(), "
Gabriel
")
self.assertEquals(credential_request.getFirstName(), "
Gabriel
")
self.assertEquals(credential_request.getDefaultEmailText(),
self.assertEquals(credential_request.getDefaultEmailText(),
"
gabriel
@
test
.
com
")
"
gabriel
@
test
.
com
")
self.assertEquals(credential_request.getRole(), "
internal
")
self.assertEquals(credential_request.getFunction(), "
member
")
self.stepUnSetCredentialAutomaticApprovalPreferences()
self.stepUnSetCredentialAutomaticApprovalPreferences()
def testBase_getDefaultAssignmentArgumentDict(self):
def testBase_getDefaultAssignmentArgumentDict(self):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment