def METHOD_NAME(self):
    driver = self._makeOne()
    conn = driver.connect()
    # exits on commit
    driver.enter_critical_phase_until_transaction_end(conn, None)
    conn.rollback()
    self.assertFalse(driver.is_in_critical_phase(conn, None))