pep8 compliance
This commit is contained in:
parent
2aaddbd81b
commit
2f72ec8270
|
@ -1907,24 +1907,24 @@ class TestPyLast(unittest.TestCase):
|
||||||
self.assertEqual(len(tracks), 1)
|
self.assertEqual(len(tracks), 1)
|
||||||
self.assertEqual(str(tracks[0].track.artist), "Johnny Cash")
|
self.assertEqual(str(tracks[0].track.artist), "Johnny Cash")
|
||||||
self.assertEqual(str(tracks[0].track.title), "Ring of Fire")
|
self.assertEqual(str(tracks[0].track.title), "Ring of Fire")
|
||||||
|
|
||||||
def test_artist_get_correction(self):
|
def test_artist_get_correction(self):
|
||||||
# Arrange
|
# Arrange
|
||||||
artist = pylast.Artist("guns and roses", self.network)
|
artist = pylast.Artist("guns and roses", self.network)
|
||||||
|
|
||||||
# Act
|
# Act
|
||||||
corrected_artist_name = artist.get_correction()
|
corrected_artist_name = artist.get_correction()
|
||||||
|
|
||||||
# Assert
|
# Assert
|
||||||
self.assertEqual(corrected_artist_name, "Guns N' Roses")
|
self.assertEqual(corrected_artist_name, "Guns N' Roses")
|
||||||
|
|
||||||
def test_track_get_correction(self):
|
def test_track_get_correction(self):
|
||||||
# Arrange
|
# Arrange
|
||||||
track = pylast.Track("Guns N' Roses", "mrbrownstone", self.network)
|
track = pylast.Track("Guns N' Roses", "mrbrownstone", self.network)
|
||||||
|
|
||||||
# Act
|
# Act
|
||||||
corrected_track_name = track.get_correction()
|
corrected_track_name = track.get_correction()
|
||||||
|
|
||||||
# Assert
|
# Assert
|
||||||
self.assertEqual(corrected_track_name, "Mr. Brownstone")
|
self.assertEqual(corrected_track_name, "Mr. Brownstone")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue