diff --git a/tests/test_artist.py b/tests/test_artist.py index 0e3843f8..8837261e 100755 --- a/tests/test_artist.py +++ b/tests/test_artist.py @@ -52,6 +52,17 @@ def test_bio_content(self): self.assertIsNotNone(bio) self.assertGreaterEqual(len(bio), 1) + def test_bio_content_none(self): + # Arrange + # An artist with no biography, with "" 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)