def testTagCdId(): tag = Tag() assert tag.cd_id is None tag.cd_id = b"\x01\x02" assert tag.cd_id == b"\x01\x02" tag.cd_id = b"\xff" * 804 assert tag.cd_id == b"\xff" * 804 try: tag.cd_id = b"\x00" * 805 except ValueError: pass # expected else: assert not ("CD id is too long, expected ValueError")
def testTagCdId(): tag = Tag() assert tag.cd_id is None tag.cd_id = b"\x01\x02" assert tag.cd_id == b"\x01\x02" tag.cd_id = b"\xff" * 804 assert tag.cd_id == b"\xff" * 804 try: tag.cd_id = b"\x00" * 805 except ValueError: pass # expected else: assert not("CD id is too long, expected ValueError")
def testTagCdId(): tag = Tag() assert_equal(tag.cd_id, None) tag.cd_id = b"\x01\x02" assert_equal(tag.cd_id, b"\x01\x02") tag.cd_id = b"\xff" * 804 assert_equal(tag.cd_id, b"\xff" * 804) try: tag.cd_id = b"\x00" * 805 except ValueError: pass # expected else: assert_false("CD id is too long, expected ValueError")
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 Whenever you empty your clip, dip, trip your sidekick You got skill, you best manage to chill And do yourself a favor, don`t come nowhere near the Hill