def testTagBPM(): tag = Tag() assert (tag.bpm is None) tag.bpm = 150 assert (tag.bpm == 150) assert (tag.frame_set[b"TBPM"]) tag.bpm = 180 assert (tag.bpm == 180) assert (tag.frame_set[b"TBPM"]) assert (len(tag.frame_set[b"TBPM"]) == 1) tag.bpm = 190.5 assert type(tag.bpm) is int assert tag.bpm == 191 assert len(tag.frame_set[b"TBPM"]) == 1
def testTagBPM(): tag = Tag() assert (tag.bpm is None) tag.bpm = 150 assert (tag.bpm == 150) assert (tag.frame_set[b"TBPM"]) tag.bpm = 180 assert (tag.bpm == 180) assert (tag.frame_set[b"TBPM"]) assert (len(tag.frame_set[b"TBPM"]) == 1) tag.bpm = 190.5 assert type(tag.bpm) is int assert tag.bpm == 191 assert len(tag.frame_set[b"TBPM"]) == 1
def testTagBPM(): tag = Tag() assert_is_none(tag.bpm) tag.bpm = 150 assert_equal(tag.bpm, 150) assert_true(tag.frame_set[b"TBPM"]) tag.bpm = 180 assert_equal(tag.bpm, 180) assert_true(tag.frame_set[b"TBPM"]) assert_equal(len(tag.frame_set[b"TBPM"]), 1) tag.bpm = 190.5 assert_true(type(tag.bpm) is int) assert_equal(tag.bpm, 191) assert_equal(len(tag.frame_set[b"TBPM"]), 1)
t.disc_num = (1, 1) t.original_release_date = "1994-04-07" t.release_date = "1994-04-07" t.encoding_date = "2002-03" t.recording_date = 1996 t.tagging_date = "2012-2-5" t.comments.set(u"Gritty, yo!") t.comments.set(u"Brownsville, Brooklyn", u"Origin") t.user_text_frames.set(u"****", u"Rating") t.artist_url = b"http://allmusic.com/artist/mop-p194909" t.user_url_frames.set(b"http://eyed3.nicfit.net/") t.bpm = 187 t.play_count = 125 t.unique_file_ids.set(b"43e888e067ea107f964916af6259cbe7", "md5sum") t.cd_id = b"\x3c\x33\x4d\x41\x43\x59\x3c\x33" t.privates.set("Secrets", "Billy Danzenie") t.terms_of_use = u"Blunted" t.lyrics.set(u""" [ Billy Danzenie ] How about some hardcore? (Yeah, we like it raw!) (4x) How about some hardcore? [ VERSE 1: Billy Danzenie ] (Yeah, we like it raw in the streets) For the fellas on the corner posted up 20 deep With your ifth on your hip, ready to flip
t.disc_num = (1,1) t.original_release_date = "1994-04-07" t.release_date = "1994-04-07" t.encoding_date = "2002-03" t.recording_date = 1996 t.tagging_date = "2012-2-5" t.comments.set(u"Gritty, yo!") t.comments.set(u"Brownsville, Brooklyn", u"Origin") t.user_text_frames.set(u"****", u"Rating") t.artist_url = b"http://allmusic.com/artist/mop-p194909" t.user_url_frames.set(b"http://eyed3.nicfit.net/") t.bpm = 187 t.play_count = 125 t.unique_file_ids.set(b"43e888e067ea107f964916af6259cbe7", "md5sum") t.cd_id = b"\x3c\x33\x4d\x41\x43\x59\x3c\x33" t.privates.set("Secrets", "Billy Danzenie") t.terms_of_use = u"Blunted" t.lyrics.set(u""" [ Billy Danzenie ] How about some hardcore? (Yeah, we like it raw!) (4x) How about some hardcore? [ VERSE 1: Billy Danzenie ] (Yeah, we like it raw in the streets) For the fellas on the corner posted up 20 deep With your ifth on your hip, ready to flip