def METHOD_NAME(self):
    # calling rollback() within a TPC transaction fails with
    # ProgrammingError.
    con = self.connect()
    try:
        xid = self.make_xid(con)
        con.tpc_begin(xid)
        self.assertRaises(self.driver.ProgrammingError, con.rollback)
    finally:
        con.close()