def test_plain_load_passive(self):
        """test that many-to-one set doesn't load the old value."""

        User, Address = self.classes.User, self.classes.Address


        sess = sessionmaker()()
        u1 = User(name='jack')
        u2 = User(name='ed')
        a1 = Address(email_address='a1')
        a1.user = u1
        sess.add_all([u1, u2, a1])
        sess.commit()

        # in this case, a lazyload would
        # ordinarily occur except for the
        # PASSIVE_NO_FETCH flag.
        def go():
            a1.user = u2
        self.assert_sql_count(testing.db, go, 0)

        assert u1.addresses not in a1
        assert a1 in u2.addresses
dataset/ETHPy150Open zzzeek/sqlalchemy/test/orm/test_backref_mutations.py/O2MCollectionTest.test_plain_load_passive/swapped operands of `not in`