def METHOD_NAME(db):
    handler = GenericAuthHandler()
    # Create an authenticated account
    account = handler.create_account(account_data)
    db.session.add(account)
    db.session.commit()
    id_ = account.id
    # A valid update
    updated_data = attr.evolve(account_data, imap_username="other@example.com")
    account = handler.update_account(account, updated_data)
    db.session.add(account)
    db.session.commit()
    account = db.session.query(Account).get(id_)
    assert account.imap_username == "other@example.com"