def METHOD_NAME(api):
    '''
    test to raise exception when type of auto_unlink param does not match the expected type.
    '''
    with pytest.raises(TypeError):
        api.agent_config.edit(auto_unlink='nope')