]> kaliko git repositories - mpd-sima.git/commitdiff
Fixed unit test for track/albumartist
authorkaliko <kaliko@azylum.org>
Sat, 22 Nov 2014 23:36:16 +0000 (00:36 +0100)
committerkaliko <kaliko@azylum.org>
Sat, 22 Nov 2014 23:36:16 +0000 (00:36 +0100)
tests/test_track.py

index e838a2016fb44d8e069ca302bcc30a327c0bed96..28487b7f12ec22fa2c851888b4c80132722a1ec9 100644 (file)
@@ -34,8 +34,8 @@ class TestTrackObject(unittest.TestCase):
 
     def test_albumartist(self):
         trk = Track(albumartist='album_artist', artist='track_artist')
-        self.assertEqual(trk.artist.name, 'album_artist')
+        self.assertEqual(trk.get_artist().name, 'album_artist')
         trk = Track(artist='track_artist')
-        self.assertEqual(trk.artist.name, 'track_artist')
+        self.assertEqual(trk.get_artist().name, 'track_artist')
 
 # vim: ai ts=4 sw=4 sts=4 expandtab