def test_equality(self, album, track, artist_event): a = AlbumEvent(album, track) b = AlbumEvent(None, track) c = AlbumEvent(album, track) assert a != b != artist_event assert hash(a) != hash(b) != hash(artist_event) assert a is not b is not artist_event assert a == c
def album_event(album, track): return AlbumEvent(album, [track])