def METHOD_NAME(demoinfo: DemoInfo):
    new_title = demo_title + "2"
    new_state = "published"
    demoinfo.add_demo(demo_id, demo_title, state).unwrap()
    new_demo = {
        "title": new_title,
        "demo_id": demo_id,
        "state": new_state,
    }
    demoinfo.update_demo(new_demo, demo_id).unwrap()
    result = demoinfo.read_demo_metainfo(demo_id)
    info = result.unwrap()
    assert new_state == info["state"]
    assert new_title == info["title"]