Add assert_startswith/endswith helper functions
This commit is contained in:
parent
fa601b8111
commit
60dea38d10
6 changed files with 23 additions and 17 deletions
|
@ -42,7 +42,7 @@ class TestPyLastWithLibreFm(unittest.TestCase):
|
|||
representation = repr(network)
|
||||
|
||||
# Assert
|
||||
self.assertTrue(representation.startswith("pylast.LibreFMNetwork("))
|
||||
self.assert_startswith(representation, "pylast.LibreFMNetwork(")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue