def METHOD_NAME(client, session):
    """Helper function to go through the "generate codename" flow."""
    client.post("/generate", data={"tor2web_check": 'href="fake.onion"'})
    tab_id, codename = next(iter(session["codenames"].items()))
    client.post("/create", data={"tab_id": tab_id})
    return codename