Remove pointless empty comments
This commit is contained in:
parent
552c45f18f
commit
ab2b605c8f
|
@ -30,17 +30,17 @@ class TestSequenceFunctions(unittest.TestCase):
|
||||||
title = "Test Title"
|
title = "Test Title"
|
||||||
timestamp = self.unix_timestamp()
|
timestamp = self.unix_timestamp()
|
||||||
lastfm_user = self.network.get_user(self.username)
|
lastfm_user = self.network.get_user(self.username)
|
||||||
#
|
|
||||||
# Act
|
# Act
|
||||||
self.network.scrobble(artist = artist, title = title, timestamp = timestamp)
|
self.network.scrobble(artist = artist, title = title, timestamp = timestamp)
|
||||||
#
|
|
||||||
# Assert
|
# Assert
|
||||||
last_scrobble = lastfm_user.get_recent_tracks(limit = 1)[0]
|
last_scrobble = lastfm_user.get_recent_tracks(limit = 1)[0]
|
||||||
self.assertEqual(str(last_scrobble.track.artist), str(artist))
|
self.assertEqual(str(last_scrobble.track.artist), str(artist))
|
||||||
self.assertEqual(str(last_scrobble.track.title), str(title))
|
self.assertEqual(str(last_scrobble.track.title), str(title))
|
||||||
self.assertEqual(str(last_scrobble.timestamp), str(timestamp))
|
self.assertEqual(str(last_scrobble.timestamp), str(timestamp))
|
||||||
#
|
|
||||||
#
|
|
||||||
def test_unscrobble(self):
|
def test_unscrobble(self):
|
||||||
# Arrange
|
# Arrange
|
||||||
artist = "Test Artist 2"
|
artist = "Test Artist 2"
|
||||||
|
@ -49,36 +49,36 @@ class TestSequenceFunctions(unittest.TestCase):
|
||||||
library = pylast.Library(user = self.username, network = self.network)
|
library = pylast.Library(user = self.username, network = self.network)
|
||||||
self.network.scrobble(artist = artist, title = title, timestamp = timestamp)
|
self.network.scrobble(artist = artist, title = title, timestamp = timestamp)
|
||||||
lastfm_user = self.network.get_user(self.username)
|
lastfm_user = self.network.get_user(self.username)
|
||||||
#
|
|
||||||
# Act
|
# Act
|
||||||
library.remove_scrobble(artist = artist, title = title, timestamp = timestamp)
|
library.remove_scrobble(artist = artist, title = title, timestamp = timestamp)
|
||||||
#
|
|
||||||
# Assert
|
# Assert
|
||||||
last_scrobble = lastfm_user.get_recent_tracks(limit = 1)[0]
|
last_scrobble = lastfm_user.get_recent_tracks(limit = 1)[0]
|
||||||
self.assertNotEqual(str(last_scrobble.timestamp), str(timestamp))
|
self.assertNotEqual(str(last_scrobble.timestamp), str(timestamp))
|
||||||
#
|
|
||||||
#
|
|
||||||
def test_add_album(self):
|
def test_add_album(self):
|
||||||
# Arrange
|
# Arrange
|
||||||
library = pylast.Library(user = self.username, network = self.network)
|
library = pylast.Library(user = self.username, network = self.network)
|
||||||
album = self.network.get_album("Test Artist", "Test Album")
|
album = self.network.get_album("Test Artist", "Test Album")
|
||||||
#
|
|
||||||
# Act
|
# Act
|
||||||
library.add_album(album)
|
library.add_album(album)
|
||||||
#
|
|
||||||
# Assert
|
# Assert
|
||||||
# Nothing here, just that no exception occurred
|
# Nothing here, just that no exception occurred
|
||||||
#
|
|
||||||
#
|
|
||||||
def test_get_venue(self):
|
def test_get_venue(self):
|
||||||
# Arrange
|
# Arrange
|
||||||
venue_name = "Last.fm Office"
|
venue_name = "Last.fm Office"
|
||||||
country_name = "United Kingom"
|
country_name = "United Kingom"
|
||||||
#
|
|
||||||
# Act
|
# Act
|
||||||
venue_search = self.network.search_for_venue(venue_name, country_name)
|
venue_search = self.network.search_for_venue(venue_name, country_name)
|
||||||
venue = venue_search.get_next_page()[0]
|
venue = venue_search.get_next_page()[0]
|
||||||
#
|
|
||||||
# Assert
|
# Assert
|
||||||
self.assertEqual(str(venue.id), "8778225")
|
self.assertEqual(str(venue.id), "8778225")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue