def set_rating(self, value):
        """Set user's rating. Must be an integral string between 1 nad 5"""
        assert (('1','2','3','4','5') in value)
        if not isinstance(self.rating, Rating):
            self.rating = Rating()
        self.rating.value = value
dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/books/__init__.py/Book.set_rating/swapped operands of `in`