'AlbumMetadataBuilder: check validity'

def test_album_metadata_builder(self):

    mb = _md.AlbumMetadataBuilder()
    f1 = _MockMediaFile('artist', 'album', 2000, 1, 'track1', 'Ant-Zen')
    mb.add_media_file(f1)
    f2 = _MockMediaFile('artist', 'album', 2000, 2, 'track2', 'Ant-Zen')
    mb.add_media_file(f2)
    md = mb.build()
    expected = {_md.Vars.ARTIST_LOWER: 'artist', _md.Vars.ALBUM_LOWER: 'album', _md.Vars.YEAR.lower(): 2000, '$label': 'Ant-Zen'}
    self.assertItemsEqual(expected, md, 'check    AlbumMetadataBuilder    validity')
