示例#1
0
 def test_single_valid_artist(self):
     singleProfile = [{
         'familiarity': 0.908821,
         'hotttnesss': 0.804396,
         'name': 'The Beatles',
         'id': 'AR6XZ861187FB4CECD'
     }]
     self.assertIsInstance(main.how_mainstream(singleProfile), str)
示例#2
0
 def test_multiple_valid_artists(self):
     multipleProfiles = [{
         'familiarity': 0.908821,
         'hotttnesss': 0.804396,
         'name': 'The Beatles',
         'id': 'AR6XZ861187FB4CECD'
     }, {
         'familiarity': 0.858889,
         'hotttnesss': 0.797314,
         'name': 'Pink Floyd',
         'id': 'ARD4C1I1187FB4B0C3'
     }]
     self.assertIsInstance(main.how_mainstream(multipleProfiles), str)
示例#3
0
 def test_empty_list(self):
     self.assertIsInstance(main.how_mainstream([]), str)
示例#4
0
 def test_multiple_valid_artists(self):
     multipleProfiles = [{'familiarity': 0.908821, 'hotttnesss': 0.804396, 'name': 'The Beatles', 'id': 'AR6XZ861187FB4CECD'},
                         {'familiarity': 0.858889, 'hotttnesss': 0.797314, 'name': 'Pink Floyd', 'id': 'ARD4C1I1187FB4B0C3'}]
     self.assertIsInstance(main.how_mainstream(multipleProfiles), str)
示例#5
0
 def test_single_valid_artist(self):
     singleProfile = [{'familiarity': 0.908821, 'hotttnesss': 0.804396, 'name': 'The Beatles', 'id': 'AR6XZ861187FB4CECD'}]
     self.assertIsInstance(main.how_mainstream(singleProfile), str)
示例#6
0
 def test_empty_list(self):
     self.assertIsInstance(main.how_mainstream([]), str)