def METHOD_NAME(self):
    inventory = make_inventory(hosts=("@local",))
    state = State(inventory, Config())
    host = inventory.get_host("@local")
    host.connect(reason=True)
    assert len(state.active_hosts) == 0