示例#1
0
 def test_various_artists_tolerated(self):
     item = _make_item(u'one', 1)
     item.artist = u'Various Artists'
     info = _make_trackinfo()[0]
     dist = match.track_distance(item, info, incl_artist=True)
     self.assertEqual(dist, 0.0)
示例#2
0
 def test_identical_tracks(self):
     item = _make_item(u'one', 1)
     info = _make_trackinfo()[0]
     dist = match.track_distance(item, info, incl_artist=True)
     self.assertEqual(dist, 0.0)
示例#3
0
 def test_different_artist(self):
     item = _make_item(u'one', 1)
     item.artist = u'foo'
     info = _make_trackinfo()[0]
     dist = match.track_distance(item, info, incl_artist=True)
     self.assertNotEqual(dist, 0.0)
示例#4
0
 def test_different_title(self):
     item = _make_item("foo", 1)
     info = _make_trackinfo()[0]
     dist = match.track_distance(item, info, incl_artist=True)
     self.assertNotEqual(dist, 0.0)