Add assert_startswith/endswith helper functions
This commit is contained in:
parent
fa601b8111
commit
60dea38d10
6 changed files with 23 additions and 17 deletions
|
@ -107,8 +107,8 @@ class TestPyLastAlbum(PyLastTestCase):
|
|||
image = album.get_cover_image()
|
||||
|
||||
# Assert
|
||||
self.assertTrue(image.startswith("https://"))
|
||||
self.assertTrue(image.endswith(".png"))
|
||||
self.assert_startswith(image, "https://")
|
||||
self.assert_endswith(image, ".png")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue