def test_trans_reset_agent_broken_ensure(self):
    eng = testing_engine()
    conn = eng.connect()
    trans = conn.begin()
    assert (conn.connection._reset_agent is trans)
    trans.is_active = False
    with expect_warnings('Reset agent is not active'):
        conn.close()
def test_trans_reset_agent_broken_ensure(self):
    eng = testing_engine()
    conn = eng.connect()
    trans = conn.begin()
    assert (conn.connection._reset_agent is trans)
    trans.is_active = False
    with expect_warnings('Reset agent is not active'):
        conn.close()