Exemplo 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')])
Exemplo 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=())
Exemplo 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)
Exemplo 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')
Exemplo n.º 5
0
 def test_validation_when_name_is_not_str_then_raise_type_error(self):
     with self.assertRaises(TypeError):
         Playlist.validate_parameters(1)