def test_equality(self, track_short): a = TracksList(self.uid, self.revision, [track_short]) b = TracksList(123, self.revision, [track_short]) c = TracksList(self.uid, 10, [track_short]) assert a != b assert hash(a) != hash(b) assert a is not b assert a == c
def tracks_list(track_short): return TracksList(TestTracksList.uid, TestTracksList.revision, [track_short])