def METHOD_NAME(db):
    handler = GenericAuthHandler()
    # Create an authenticated account
    account = handler.create_account(account_data)
    db.session.add(account)
    db.session.commit()
    # Verify its settings
    id_ = account.id
    account = db.session.query(Account).get(id_)
    assert account.imap_endpoint == (
        account_data.imap_server_host,
        account_data.imap_server_port,
    )
    assert account.smtp_endpoint == (
        account_data.smtp_server_host,
        account_data.smtp_server_port,
    )
    # Ensure that the emailed events calendar was created
    assert account._emailed_events_calendar is not None
    assert account._emailed_events_calendar.name == "Emailed events"