def test_warning_on_using_inactive_session_delete(self):
        sess, u1 = self._inactive_flushed_session_fixture()
        sess.delete(u1)

        def go():
            sess.rollback()
        assert_warnings(go,
                        ["Session's state has been changed on a "
                         "non-active transaction - this state "
                         "will be discarded."],
                        )
        assert u1 in sess
        assert sess.deleted not in u1
dataset/ETHPy150Open zzzeek/sqlalchemy/test/orm/test_transaction.py/SessionTransactionTest.test_warning_on_using_inactive_session_delete/swapped operands of `not in`