def test_connect_by_ip(): # connect 192.168.1.110 client = Client() client.execute_command(Commands.CONNECT, get_primary_ip()) assert client.is_connected_to_server() client.execute_command(Commands.DISCONNECT)
def test_disconnect(): client = Client() client.execute_command(Commands.CONNECT, esd.server_name) assert client.is_connected_to_server() client.execute_command(Commands.DISCONNECT) assert not client.is_connected_to_server()
def test_connect_by_name(): # connect server-name client = Client() client.execute_command(Commands.CONNECT, esd.server_name) assert client.is_connected_to_server() client.execute_command(Commands.DISCONNECT)