コード例 #1
0
ファイル: __init__.py プロジェクト: djcurtis/Robot
 def delete_group_entity_role(self, groupname, entityrole, entityId):
     secClient1 = SecurityClient(base_url, username1, password1)
     try:
         secClient1.delete_group_entity_role(groupname, entityrole,
                                             entityId)
     except Exception, exception:
         message = exception  #"User role not deleted succesfully"
         raise AssertionError(message)
コード例 #2
0
ファイル: __init__.py プロジェクト: djcurtis/Robot
 def delete_group_entity_role_and_expect_error(self, groupname, entityrole,
                                               entityId):
     secClient1 = SecurityClient(base_url, username1, password1)
     try:
         secClient1.delete_group_entity_role(groupname, entityrole,
                                             entityId)
         message = "Entity role deleted"
         raise AssertionError(message)
     except AssertionError:
         raise AssertionError(message)
     except Exception, exception:
         print "Entity role not deleted"