Esempio n. 1
0
 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')])
Esempio n. 2
0
 def test_validation_when_songs_list_is_not_list_then_raise_type_error(self):
     with self.assertRaises(TypeError):
         Playlist.validate_parameters('OneRepublic', songs_list=())
Esempio n. 3
0
 def test_validation_when_shuffle_is_not_bool_then_raise_type_error(self):
     with self.assertRaises(TypeError):
         Playlist.validate_parameters('OneRepublic', shuffle=0)
Esempio n. 4
0
 def test_validation_when_repeat_is_not_bool_then_raise_type_error(self):
     with self.assertRaises(TypeError):
         Playlist.validate_parameters('OneRepublic', repeat='True')
Esempio n. 5
0
 def test_validation_when_name_is_not_str_then_raise_type_error(self):
     with self.assertRaises(TypeError):
         Playlist.validate_parameters(1)