Skip to content

Commit

Permalink
Add test for correct handling of albumartistsort as TSO2
Browse files Browse the repository at this point in the history
This tests that albumartistsort is handled by the TSO2 frameid.
  • Loading branch information
antlarr committed Jun 14, 2024
1 parent e90ec46 commit 11629ef
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_easyid3.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pickle

from mutagen import MutagenError
from mutagen.id3 import ID3FileType, ID3, RVA2, CHAP, TDRC, CTOC
from mutagen.id3 import ID3FileType, ID3, RVA2, CHAP, TDRC, CTOC, TSO2
from mutagen.easyid3 import EasyID3, error as ID3Error

from tests import TestCase, DATA_DIR, get_temp_copy
Expand Down Expand Up @@ -428,3 +428,9 @@ def test_text_tags(self):
self.id3.save(self.filename)
id3 = EasyID3(self.filename)
self.failUnlessEqual(id3[tag], [u"foo"])

def test_albumartistsort(self):
self.realid3.add(TSO2(text=u"someartist"))
self.id3.save(self.filename)
id3 = EasyID3(self.filename)
self.failUnlessEqual(id3["albumartistsort"], [u"someartist"])

0 comments on commit 11629ef

Please sign in to comment.