Commit a53a1433 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Fix typo.

parent 332c57ba
...@@ -184,10 +184,10 @@ class SecurityTestCase(ERP5TypeTestCase): ...@@ -184,10 +184,10 @@ class SecurityTestCase(ERP5TypeTestCase):
try: try:
self._loginAsUser(username) self._loginAsUser(username)
user = getSecurityManager().getUser() user = getSecurityManager().getUser()
valid_transistion_list =[ai['id'] for ai in valid_transition_list =[ai['id'] for ai in
self.workflow_tool.listActions(object=document) if self.workflow_tool.listActions(object=document) if
ai['category'] == 'workflow'] ai['category'] == 'workflow']
if transition in valid_transistion_list: if transition in valid_transition_list:
self.fail('User %s can pass %s transition on %s %s. Roles: [%s]' % ( self.fail('User %s can pass %s transition on %s %s. Roles: [%s]' % (
username, transition, document.getPortalTypeName(), document, username, transition, document.getPortalTypeName(), document,
", ".join(user.getRolesInContext(document)))) ", ".join(user.getRolesInContext(document))))
...@@ -201,10 +201,10 @@ class SecurityTestCase(ERP5TypeTestCase): ...@@ -201,10 +201,10 @@ class SecurityTestCase(ERP5TypeTestCase):
try: try:
self._loginAsUser(username) self._loginAsUser(username)
user = getSecurityManager().getUser() user = getSecurityManager().getUser()
valid_transistion_list =[ai['id'] for ai in valid_transition_list =[ai['id'] for ai in
self.workflow_tool.listActions(object=document) if self.workflow_tool.listActions(object=document) if
ai['category'] == 'workflow'] ai['category'] == 'workflow']
if transition not in valid_transistion_list: if transition not in valid_transition_list:
# Build a comprehensive error message # Build a comprehensive error message
workflow_states_description = [] workflow_states_description = []
workflow_transitions_description = [] workflow_transitions_description = []
......
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