Esempio n. 1
0
 def test_close():
     client = Client()
     client.execute_command(Commands.OPEN, esd.sharing_root.name)
     assert client.is_connected_to_sharing()
     client.execute_command(Commands.CLOSE)
     assert not client.is_connected_to_sharing()
Esempio n. 2
0
 def test_open_by_sharing_name_at_server_name(): # open sharing-name@server-name
     client = Client()
     client.execute_command(Commands.OPEN, f"{esd.sharing_root.name}@{esd.server_name}")
     assert client.is_connected_to_sharing()
     client.execute_command(Commands.DISCONNECT)
Esempio n. 3
0
 def test_open_by_sharing_name_at_ip_port(): # open [email protected]:12020
     client = Client()
     client.execute_command(Commands.OPEN, f"{esd.sharing_root.name}@{get_primary_ip():{DEFAULT_SERVER_PORT}}")
     assert client.is_connected_to_sharing()
     client.execute_command(Commands.DISCONNECT)
Esempio n. 4
0
 def test_open_by_sharing_name(): # open sharing-name
     client = Client()
     client.execute_command(Commands.OPEN, esd.sharing_root.name)
     assert client.is_connected_to_sharing()
     client.execute_command(Commands.DISCONNECT)