def METHOD_NAME(plugin):
    plugins.manager.install(plugin)
    plugins.manager.activate_later(plugin)
    plugins.manager.deactivate_later(plugin)
    assert plugin.get_name() in plugins.manager._pending_activation
    assert plugin.get_name() in plugins.manager._pending_deactivation
    plugins.manager.activate_pending_plugins()
    assert not plugin._activate_called