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
def similar_tracks(track): return SimilarTracks(track, [track])