def test_playlist_validate_repeat_raises_exception_if_repeat_not_bool( self): test = 5 exc = None try: Playlist.validate_repeat(test) except Exception as err: exc = err self.assertIsNotNone(exc) self.assertEqual(str(exc), 'Repeat must be of "bool" type.')
def test_playlist_validate_repeat_passes_with_correct_input(self): test = True Playlist.validate_repeat(test)