def test_save_load(basic_music_video): music_video_file = basic_music_video.save() loaded_music_video = MusicVideo.load(music_video_file) assert len(loaded_music_video.segments) == len(basic_music_video.segments)
def basic_music_video(shinsekai_segment, tatami_segment, orange_segment) -> MusicVideo: return MusicVideo([shinsekai_segment, tatami_segment, orange_segment])
def music_video(): return MusicVideo([black_segment(), white_segment(), orange_segment()])