示例#1
0
    def test_equality(self, track):
        a = SimilarTracks(track, [track])
        b = SimilarTracks(None, [track])
        c = SimilarTracks(track, [track])

        assert a != b
        assert hash(a) != hash(b)
        assert a is not b

        assert a == c
示例#2
0
def similar_tracks(track):
    return SimilarTracks(track, [track])