def test_remove_client_from_server(conf):

    server1 = Server(conf['UMAX'], conf['TTASK'])
    client1 = Client()
    client_hash_code = client1.get_hash_code()
    server1.add_client(client1)

    assert str == type(client_hash_code), "The hash code must be a string"

    # before removing, the server length should be 1
    assert 1 == server1.get_current_number_of_clients()

    server1._remove_client_from_server_using_hash_code(client_hash_code)
    # now the server should not have any clients
    assert 0 == server1.get_current_number_of_clients()
def test_client_constructor(conf):
    client1 = Client()
    assert 1 == client1.get_current_hop()
    assert type(client1.get_hash_code()) == str