@testing.requires.savepoints
    def test_update_deleted_on_rollback(self):
        User = self.classes.User
        s = self.session()
        u1 = User(name='ed')
        s.add(u1)
        s.commit()

        s.begin_nested()
        s.delete(u1)
        assert s.deleted in u1
        s.rollback()
        assert u1 in s
        assert u1 not in s.deleted
dataset/ETHPy150Open zzzeek/sqlalchemy/test/orm/test_transaction.py/SavepointTest.test_update_deleted_on_rollback/swapped operands of `in`