コード例 #1
0
 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)
コード例 #2
0
 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()
コード例 #3
0
 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)