Esempio n. 1
0
 def test_concat_multi_values_artist_with_no_name(self):
     artists = [Artist(name=None)]
     translated = translator.concat_multi_values(artists, "name")
     self.assertEqual(translated, "")
Esempio n. 2
0
 def test_concat_multi_values_artist_with_no_musicbrainz_id(self):
     artists = [Artist(name="Jah Wobble")]
     translated = translator.concat_multi_values(artists, "musicbrainz_id")
     self.assertEqual(translated, "")
Esempio n. 3
0
 def test_concat_multi_values(self):
     artists = [Artist(name="ABBA"), Artist(name="Beatles")]
     translated = translator.concat_multi_values(artists, "name")
     self.assertEqual(translated, "ABBA;Beatles")
Esempio n. 4
0
 def test_concat_multi_values_artist_with_no_musicbrainz_id(self):
     artists = [Artist(name='Jah Wobble')]
     translated = translator.concat_multi_values(artists, 'musicbrainz_id')
     self.assertEqual(translated, '')
Esempio n. 5
0
 def test_concat_multi_values_artist_with_no_name(self):
     artists = [Artist(name=None)]
     translated = translator.concat_multi_values(artists, 'name')
     self.assertEqual(translated, '')
Esempio n. 6
0
 def test_concat_multi_values(self):
     artists = [Artist(name='ABBA'), Artist(name='Beatles')]
     translated = translator.concat_multi_values(artists, 'name')
     self.assertEqual(translated, 'ABBA;Beatles')
Esempio n. 7
0
 def test_concat_multi_values(self):
     artists = [Artist(name='ABBA'), Artist(name='Beatles')]
     translated = translator.concat_multi_values(artists, 'name')
     self.assertEqual(translated, 'ABBA;Beatles')