def _items_and_info(self): items = [_common.item()] items[0].track = 1 items[0].path = '/path/to/file.mp3' info = autotag.AlbumInfo('the album', 'album id', 'the artist', 'artist id', [autotag.TrackInfo('the title', 'track id')]) return items, info
def setUp(self): super(ShowChangeTest, self).setUp() self.io.install() self.items = [_common.item()] self.items[0].track = 1 self.items[0].path = '/path/to/file.mp3' self.info = autotag.AlbumInfo( u'the album', u'album id', u'the artist', u'artist id', [autotag.TrackInfo(u'the title', u'track id', index=1)])
def setUp(self): self.io = _common.DummyIO() self.io.install() self.items = [_common.item()] self.items[0].track = 1 self.items[0].path = '/path/to/file.mp3' self.info = autotag.AlbumInfo( 'the album', 'album id', 'the artist', 'artist id', [autotag.TrackInfo('the title', 'track id', index=1)])