|  | @@ -15,6 +15,19 @@ def test_get_track_path(tracks_dir_path, track_name):
 | 
	
		
			
				|  |  |      assert track_path == iface.track_path
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +@pytest.mark.parametrize(('track_name', 'tag_label', 'expected_text'), [
 | 
	
		
			
				|  |  | +    ('ogg-opus-empty.opus', 'artist', None),
 | 
	
		
			
				|  |  | +    ('ogg-opus-typical.opus', 'artist', 'some artist'),
 | 
	
		
			
				|  |  | +    ('ogg-opus-typical.opus', 'comment', 'some comment'),
 | 
	
		
			
				|  |  | +    ('ogg-opus-typical.opus', 'com', None),
 | 
	
		
			
				|  |  | +    ('ogg-opus-typical.opus', 'symuid:uuid',
 | 
	
		
			
				|  |  | +     '613ea4ac-a4cf-4026-8e99-1904b2bb5cd0'),
 | 
	
		
			
				|  |  | +])
 | 
	
		
			
				|  |  | +def test__get_single_text(tracks_dir_path, track_name, tag_label, expected_text):
 | 
	
		
			
				|  |  | +    iface = OggOpus(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'), [
 | 
	
		
			
				|  |  |      ('ogg-opus-empty.opus', None),
 | 
	
		
			
				|  |  |      ('ogg-opus-typical.opus', 'some comment'),
 | 
	
	
		
			
				|  | @@ -37,3 +50,12 @@ def test_set_comment(empty_ogg_opus_path):
 | 
	
		
			
				|  |  |      tags = mutagen.File(iface.track_path).tags
 | 
	
		
			
				|  |  |      assert len(tags) == 1
 | 
	
		
			
				|  |  |      assert tags.items()[0] == ('comment', ['你好'])
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +@pytest.mark.parametrize(('track_name', 'expected_uuid'), [
 | 
	
		
			
				|  |  | +    ('ogg-opus-empty.opus', None),
 | 
	
		
			
				|  |  | +    ('ogg-opus-typical.opus', b'a>\xa4\xac\xa4\xcf@&\x8e\x99\x19\x04\xb2\xbb\\\xd0'),
 | 
	
		
			
				|  |  | +])
 | 
	
		
			
				|  |  | +def test_get_track_uuid(tracks_dir_path, track_name, expected_uuid):
 | 
	
		
			
				|  |  | +    iface = OggOpus(mutagen.File(os.path.join(tracks_dir_path, track_name)))
 | 
	
		
			
				|  |  | +    assert expected_uuid == iface.get_track_uuid()
 |