def METHOD_NAME(aiida_localhost):
    """Test the constructor."""
    filepath_executable = '/usr/bin/bash'
    code = InstalledCode(computer=aiida_localhost, filepath_executable=filepath_executable)
    assert code.computer.pk == aiida_localhost.pk
    assert code.filepath_executable == pathlib.PurePath(filepath_executable)