Add test for artist with no bio content

This commit is contained in:
Hugo 2020-04-16 09:41:13 +03:00
parent 26f2173160
commit 925cae2031

View file

@ -52,6 +52,17 @@ class TestPyLastArtist(TestPyLastWithLastFm):
self.assertIsNotNone(bio)
self.assertGreaterEqual(len(bio), 1)
def test_bio_content_none(self):
# Arrange
# An artist with no biography, with "<content/>" in the API XML
artist = pylast.Artist("Mr Sizef + Unquote", self.network)
# Act
bio = artist.get_bio_content()
# Assert
self.assertIsNone(bio)
def test_bio_summary(self):
# Arrange
artist = pylast.Artist("Test Artist", self.network)