Commit 7b69856f authored by Gabriel Monnerat's avatar Gabriel Monnerat

add more asserts to validate role and function

parent 3873b687
...@@ -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):
......
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