X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=tests%2Ftest_track.py;h=62eb30617f5761c8a0369513cd3aaf591d14a936;hb=888614f7afac2b23fb473d209c54dcb69216b165;hp=80a709e04fdfcb2034d2292a9215c7dc773e4373;hpb=2eb13c85fe72ade75193b589748920615fbb22d2;p=mpd-sima.git diff --git a/tests/test_track.py b/tests/test_track.py index 80a709e..62eb306 100644 --- a/tests/test_track.py +++ b/tests/test_track.py @@ -33,6 +33,8 @@ class TestTrackObject(unittest.TestCase): def test_boolean_type(self): self.assertFalse(bool(Track())) + for trk in [{}, {'artist': 'Devolt'}, {'artist': 'Devolt', 'file':''}]: + self.assertFalse(bool(Track(**trk))) def test_albumartist(self): trk = Track(albumartist='album_artist', artist='track_artist')