def METHOD_NAME(base_app, key_directory, salt, iterations):
    """
    Tests whether the secret_key is produced exactly the way we expected
    If the secret salt and iterations are set, the process should always produce the same
    key as we caclculate here.
    Note: With the removal of JWT_SECRET_KEY from settings, this test is obsolete
    """
    base_app.config["JWT_SECRET_KEY"] = None
    base_app.config["JWT_SECRET_SALT"] = salt
    base_app.config["JWT_SECRET_ITERATIONS"] = iterations
    base_app.config["SECRET_FILE"] = key_directory / "encKey"
    base_app.init_jwt_config()
    with Path(key_directory / "encKey").open("rb") as key_file:
        secret_key = key_file.read(32)
        jwt_key = hashlib.pbkdf2_hmac(
            "sha256",
            secret_key,
            salt=bytes.fromhex(salt) if isinstance(salt, str) else salt,
            iterations=iterations,
        )
        assert (
            base_app.config["JWT_SECRET_KEY"] == jwt_key
        ), "JWT secret derivation from encKey doesn't work"