def test_trans_close(self):
    with testing.db.connect() as connection:
        trans = connection.begin()
        assert (connection.connection._reset_agent is trans)
        trans.close()
        assert (connection.connection._reset_agent is None)
def test_trans_close(self):
    with testing.db.connect() as connection:
        trans = connection.begin()
        assert (connection.connection._reset_agent is trans)
        trans.close()
        assert (connection.connection._reset_agent is None)