Skip to content

Commit

Permalink
Add test for artist with no bio content
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed May 8, 2020
1 parent 26f2173 commit 925cae2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_artist.py
Expand Up @@ -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 "<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)
Expand Down

0 comments on commit 925cae2

Please sign in to comment.