def kill_server_scenario(ip, port): utils.execute_scenario(ip, port, lambda: 'KILL_SERVICE\n')
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)
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)
def disconnect_scenario(ip, port): disconnect = partial(create_disconnect_message, 'bill') utils.execute_scenario(ip, port, disconnect)
def bad_message_scenario(ip, port): bad = partial(create_bad_message) utils.execute_scenario(ip, port, bad)
def helo_scenario(ip, port): helo = partial(create_helo_message) utils.execute_scenario(ip, port, helo)