Update libre.fm test
This commit is contained in:
parent
571edf23d9
commit
76d85f4c19
|
@ -2174,11 +2174,11 @@ class TestPyLastWithLibreFm(unittest.TestCase):
|
||||||
# Act
|
# Act
|
||||||
network = pylast.LibreFMNetwork(
|
network = pylast.LibreFMNetwork(
|
||||||
password_hash=password_hash, username=username)
|
password_hash=password_hash, username=username)
|
||||||
tags = network.get_top_tags(limit=1)
|
artist = network.get_artist("Radiohead")
|
||||||
|
name = artist.get_name()
|
||||||
|
|
||||||
# Assert
|
# Assert
|
||||||
self.assertGreater(len(tags), 0)
|
self.assertEqual(name, "Radiohead")
|
||||||
self.assertIsInstance(tags[0], pylast.TopItem)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in a new issue