Merge pull request #323 from pylast/fix-deprecation-warning
Fix DeprecationWarning: Please use assertRegex instead
This commit is contained in:
commit
9622fca501
|
@ -277,9 +277,7 @@ class TestPyLastUser(TestPyLastWithLastFm):
|
||||||
|
|
||||||
top_album = albums[0].item
|
top_album = albums[0].item
|
||||||
self.assertTrue(len(top_album.info["image"]))
|
self.assertTrue(len(top_album.info["image"]))
|
||||||
self.assertRegexpMatches(
|
self.assertRegex(top_album.info["image"][pylast.SIZE_LARGE], r"^http.+$")
|
||||||
top_album.info["image"][pylast.SIZE_LARGE], r"^http.+$"
|
|
||||||
)
|
|
||||||
|
|
||||||
def test_user_tagged_artists(self):
|
def test_user_tagged_artists(self):
|
||||||
# Arrange
|
# Arrange
|
||||||
|
|
Loading…
Reference in a new issue