def test_enable_rel_loading_on_persistent_disallows_backref_event(self):
        c3 = Child()
        sess.enable_relationship_loading(c3)
        c3.parent_id = p1.id
        c3.parent = p1

        # c3.parent is already acting like a "load" here,
        # so backref events don't work
        assert p1.children not in c3
dataset/ETHPy150Open zzzeek/sqlalchemy/test/orm/test_load_on_fks.py/LoadOnFKsTest.test_enable_rel_loading_on_persistent_disallows_backref_event/swapped operands of `not in`