コード例 #1
0
 def test_match_no_bonus(self):
     """match should return the score bonus for the tracks being compared
     
     number of points depends on whether track/artist/album has been matched
     """
     track2 = SelectionTrack.get_testing_instance()
     track2._id = ""
     track2._album_id = ""
     track2._artist_ids = [""]
     self.assertEquals(self.track.match(track2), 0)
コード例 #2
0
 def setUpClass(cls):
     cls.track = SelectionTrack.get_testing_instance()