def METHOD_NAME(
    monkeypatch, db, default_account, config, sync_state
):
    purge_other_accounts(default_account)
    config["SYNC_STEAL_ACCOUNTS"] = True
    default_account.sync_should_run = True
    default_account.sync_state = sync_state
    default_account.sync_host = None
    default_account.desired_sync_host = None
    db.session.commit()
    s = patched_sync_service(db)
    s.handle_shared_queue_event({"queue_name": "foo", "id": default_account.id})
    assert s.start_sync.call_count == 1