Example #1
0
 def test_identifier_type_instance(self):
     check_type(IdentifierType.album)
Example #2
0
 def test_valid(self):
     for t in ('artist', 'album', 'playlist', 'track'):
         check_type(t)
Example #3
0
 def test_invalid(self):
     with pytest.raises(ConversionError):
         check_type('invalid')
Example #4
0
 def test_valid(self):
     for t in ('artist', 'album', 'episode', 'playlist', 'show', 'track',
               'user'):
         check_type(t)