def init_tagpy(): FrameFactory.instance().setDefaultTextEncoding(StringType.UTF8)
def _test(self, attribute, expected): FrameFactory.instance().setDefaultTextEncoding(tagpy.StringType.UTF8) file_ = tagpy.FileRef(self.mp3file) tag = file_.tag() assert expected == getattr(tag, attribute)