def create_delete_connection_test(): client = DSSClient(host, apiKey) count = len(client.list_connections()) connection = client.create_connection("toto", "HDFS") eq_(count + 1, len(client.list_connections())) connection.delete() eq_(count, len(client.list_connections()))
def list_connections_test(): client = DSSClient(host, apiKey) connections = client.list_connections() ok_(len(connections) > 0)