Failing test for #146
This commit is contained in:
parent
f9600268ea
commit
cbf2066ee5
|
@ -1972,5 +1972,15 @@ class TestPyLast(unittest.TestCase):
|
||||||
# Assert
|
# Assert
|
||||||
self.assertEqual(corrected_track_name, "Mr. Brownstone")
|
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__':
|
if __name__ == '__main__':
|
||||||
unittest.main(failfast=True)
|
unittest.main(failfast=True)
|
||||||
|
|
Loading…
Reference in a new issue