def test_equality(self, artist, album): a = Track(self.id, self.title, self.available, [artist], [album]) b = Track(self.id, '', self.available, [artist], [None]) c = Track(self.id, self.title, self.available, [artist], [album]) assert a != b assert hash(a) != hash(b) assert a is not b assert a == c
def test_equality(self): a = Track(self.id) b = Track(10) c = Track(self.id) assert a != b assert hash(a) != hash(b) assert a is not b assert a == c
def test_equality(self, artist, album): a = Track(self.id, self.title, self.available, self.available_for_premium_users, [artist], [album], self.lyrics_available) b = Track(self.id, '', self.available, self.available_for_premium_users, [artist], [album], False) c = Track(self.id, self.title, self.available, self.available_for_premium_users, [artist], [album], self.lyrics_available) assert a != b assert hash(a) != hash(b) assert a is not b assert a == c
def get(self, artists, albums): return Track(TestTrack.id, TestTrack.title, TestTrack.available, artists, albums, TestTrack.available_for_premium_users, TestTrack.lyrics_available, TestTrack.real_id, TestTrack.og_image, TestTrack.type, TestTrack.cover_uri, major, TestTrack.duration_ms, TestTrack.storage_dir, TestTrack.file_size, normalization, TestTrack.error, TestTrack.regions, TestTrack.available_as_rbt, TestTrack.content_warning, TestTrack.explicit, TestTrack.preview_duration_ms, TestTrack.available_full_without_permission, TestTrack.version, TestTrack.remember_position)
def get(self, artists, albums, track_without_nested_tracks=None): return Track( TestTrack.id, TestTrack.title, TestTrack.available, artists, albums, TestTrack.available_for_premium_users, TestTrack.lyrics_available, [poetry_lover_match], TestTrack.best, TestTrack.real_id, TestTrack.og_image, TestTrack.type, TestTrack.cover_uri, major, TestTrack.duration_ms, TestTrack.storage_dir, TestTrack.file_size, track_without_nested_tracks, track_without_nested_tracks, normalization, TestTrack.error, TestTrack.can_publish, TestTrack.state, TestTrack.desired_visibility, TestTrack.filename, user, meta_data, TestTrack.regions, TestTrack.available_as_rbt, TestTrack.content_warning, TestTrack.explicit, TestTrack.preview_duration_ms, TestTrack.available_full_without_permission, TestTrack.version, TestTrack.remember_position, TestTrack.background_video_uri, TestTrack.short_description, TestTrack.is_suitable_for_children, )