def test_validation_when_song_in_songs_list_is_not_instance_of_class_song_then_raise_type_error(self): with self.assertRaises(TypeError): Playlist.validate_parameters('OneRepublic', songs_list=[('Love Runs Out', 'OneRepublic', 'Native', '3:44')])
def test_validation_when_songs_list_is_not_list_then_raise_type_error(self): with self.assertRaises(TypeError): Playlist.validate_parameters('OneRepublic', songs_list=())
def test_validation_when_shuffle_is_not_bool_then_raise_type_error(self): with self.assertRaises(TypeError): Playlist.validate_parameters('OneRepublic', shuffle=0)
def test_validation_when_repeat_is_not_bool_then_raise_type_error(self): with self.assertRaises(TypeError): Playlist.validate_parameters('OneRepublic', repeat='True')
def test_validation_when_name_is_not_str_then_raise_type_error(self): with self.assertRaises(TypeError): Playlist.validate_parameters(1)