X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=tests%2Ftest_track.py;fp=tests%2Ftest_track.py;h=62eb30617f5761c8a0369513cd3aaf591d14a936;hb=e5ac6da78e3433a1b94676f6523e358d6089f263;hp=80a709e04fdfcb2034d2292a9215c7dc773e4373;hpb=f0912ba70260d43fc4885f6d75c2e83b6fb5a8d1;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')