def open_libcurve_file_with_root_user_and_password():
    rc = base_operate.open_libcurve_file(config.file_name, config.root_name,
                                         config.root_password)
    if rc < 0:
        logger.error("open libcurve file fail. rc = %s" % rc)
        return rc
        raise AssertionError
    else:
        return rc
def open_libcurve_file_with_normal_user():
    rc = base_operate.open_libcurve_file(config.file_name, config.user_name)
    logger.info("open libcurve file with normal user.")
    if rc < 0:
        logger.error("open libcurve file with normal user fail. rc = %s" % rc)
        return rc
        raise AssertionError
    else:
        return rc
def open_libcurve_file_with_error_user_and_root_password():
    rc = base_operate.open_libcurve_file(config.file_name, "test",
                                         config.root_password)
    logger.info("open libcurve file with error user and root password.")
    return rc
def open_libcurve_file_with_error_user():
    rc = base_operate.open_libcurve_file(config.file_name, "test")
    logger.info("open libcurve file with error user.")
    return rc
def open_libcurve_file_with_no_user():
    rc = base_operate.open_libcurve_file(config.file_name, "")
    logger.info("open libcurve file with no user.")
    return rc