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 Apr 16, 2020
1 parent 55cfa6f commit 814b651
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_artist.py
Expand Up @@ -52,6 +52,18 @@ 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)
# self.assertGreaterEqual(len(bio), 1)

def test_bio_summary(self):
# Arrange
artist = pylast.Artist("Test Artist", self.network)
Expand Down

0 comments on commit 814b651

Please sign in to comment.