def METHOD_NAME(demoinfo: DemoInfo, ddl: str):
    demoinfo.add_demo(demo_id, demo_title, state).unwrap()
    demoinfo.save_ddl(demo_id, ddl).unwrap()
    ddl_read = demoinfo.get_ddl(demo_id).unwrap()
    assert json.loads(ddl_read) == json.loads(ddl)