def test_begin_preflush(self):
        User = self.classes.User
        sess = create_session(autocommit=True)

        u1 = User(name='ed')
        sess.add(u1)

        sess.begin()
        u2 = User(name='some other user')
        sess.add(u2)
        sess.rollback()
        assert u2 not in sess
        assert sess in u1
        assert sess.query(User).filter_by(name='ed').one() is u1
dataset/ETHPy150Open zzzeek/sqlalchemy/test/orm/test_transaction.py/AutoCommitTest.test_begin_preflush/swapped operands of `in`