async def METHOD_NAME():
    o = options.Options()
    m = master.Master(o)
    a = addonmanager.AddonManager(m)
    halt = THalt()
    end = TAddon("end")
    a.add(halt)
    a.add(end)
    assert not end.running_called
    a.trigger(hooks.RunningHook())
    assert not end.running_called
    a.remove(halt)
    a.trigger(hooks.RunningHook())
    assert end.running_called