示例#1
0
def kill_server_scenario(ip, port):
    utils.execute_scenario(ip, port, lambda: 'KILL_SERVICE\n')
示例#2
0
def leave_chat_scenario(ip, port, chat_room_name, client_name):
    leave_chat = partial(
        create_leave_chat_room_message, chat_room_name, 0, client_name
    )
    utils.execute_scenario(ip, port, leave_chat)
示例#3
0
def join_chat_scenario(ip, port, chat_room_name, client_name):
    join_chat = partial(
        create_join_chat_room_message, chat_room_name, client_name
    )
    utils.execute_scenario(ip, port, join_chat)
示例#4
0
def disconnect_scenario(ip, port):
    disconnect = partial(create_disconnect_message, 'bill')
    utils.execute_scenario(ip, port, disconnect)
示例#5
0
def bad_message_scenario(ip, port):
    bad = partial(create_bad_message)
    utils.execute_scenario(ip, port, bad)
示例#6
0
def helo_scenario(ip, port):
    helo = partial(create_helo_message)
    utils.execute_scenario(ip, port, helo)