From cbf2066ee57111a2e5a3f7c28fa0ce2110c1e477 Mon Sep 17 00:00:00 2001 From: hugovk Date: Mon, 7 Sep 2015 18:25:32 +0300 Subject: [PATCH] Failing test for #146 --- tests/test_pylast.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test_pylast.py b/tests/test_pylast.py index abe9917..e013811 100755 --- a/tests/test_pylast.py +++ b/tests/test_pylast.py @@ -1972,5 +1972,15 @@ class TestPyLast(unittest.TestCase): # Assert self.assertEqual(corrected_track_name, "Mr. Brownstone") + def test_track_with_no_mbid(self): + # Arrange + track = pylast.Track("Static-X", "Set It Off", self.network) + + # Act + mbid = track.get_mbid() + + # Assert + self.assertEqual(mbid, None) + if __name__ == '__main__': unittest.main(failfast=True)