Skip to content

Commit 11629ef

Browse files
committed
Add test for correct handling of albumartistsort as TSO2
This tests that albumartistsort is handled by the TSO2 frameid.
1 parent e90ec46 commit 11629ef

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_easyid3.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pickle
44

55
from mutagen import MutagenError
6-
from mutagen.id3 import ID3FileType, ID3, RVA2, CHAP, TDRC, CTOC
6+
from mutagen.id3 import ID3FileType, ID3, RVA2, CHAP, TDRC, CTOC, TSO2
77
from mutagen.easyid3 import EasyID3, error as ID3Error
88

99
from tests import TestCase, DATA_DIR, get_temp_copy
@@ -428,3 +428,9 @@ def test_text_tags(self):
428428
self.id3.save(self.filename)
429429
id3 = EasyID3(self.filename)
430430
self.failUnlessEqual(id3[tag], [u"foo"])
431+
432+
def test_albumartistsort(self):
433+
self.realid3.add(TSO2(text=u"someartist"))
434+
self.id3.save(self.filename)
435+
id3 = EasyID3(self.filename)
436+
self.failUnlessEqual(id3["albumartistsort"], [u"someartist"])

0 commit comments

Comments
 (0)