def test_no_load_on_pending_allows_backref_event(self):
        # users who stick with the program and don't use
        # 'load_on_pending' get expected behavior

        sess.autoflush = False
        c3 = Child()
        sess.add(c3)
        c3.parent_id = p1.id

        c3.parent = p1

        assert c3 in p1.children
dataset/ETHPy150Open zzzeek/sqlalchemy/test/orm/test_load_on_fks.py/LoadOnFKsTest.test_no_load_on_pending_allows_backref_event/original