|
@@ -16,3 +16,12 @@ import shutil
|
|
|
def test__get_single_text(tracks_dir_path, track_name, tag_label, expected_text):
|
|
|
iface = ID3(mutagen.File(os.path.join(tracks_dir_path, track_name)))
|
|
|
assert expected_text == iface._get_single_text(tag_label)
|
|
|
+
|
|
|
+
|
|
|
+@pytest.mark.parametrize(('track_name', 'expected_comment'), [
|
|
|
+ ('id3v2.4-empty.mp3', None),
|
|
|
+ ('id3v2.4-typical.mp3', 'some comment'),
|
|
|
+])
|
|
|
+def test_get_comment(tracks_dir_path, track_name, expected_comment):
|
|
|
+ iface = ID3(mutagen.File(os.path.join(tracks_dir_path, track_name)))
|
|
|
+ assert expected_comment == iface.get_comment()
|