def test_get_tags_single(self):
    'Test get_tags with single-tag file'
    for mime in ['audio/mp3', 'audio/ogg']:
        audio = fakers.FakeFile(mime, 'Artist', 'Album', 'Title', 'Lyrics')
        tags = misc.get_tags(audio)
        self.assertEqual(tags['album'], 'Album')
        self.assertEqual(tags['artist'], 'Artist')
        self.assertEqual(tags['title'], 'Title')
        self.assertEqual(tags['lyrics'], 'Lyrics')
Test get_tags with single-tag file
def test_get_tags_single(self):
    
    for mime in ['audio/mp3', 'audio/ogg']:
        audio = fakers.FakeFile(mime, 'Artist', 'Album', 'Title', 'Lyrics')
        tags = misc.get_tags(audio)
        self.assertEqual(tags['album'], 'Album')
        self.assertEqual(tags['artist'], 'Artist')
        self.assertEqual(tags['title'], 'Title')
        self.assertEqual(tags['lyrics'], 'Lyrics')