def _check_service_id(self, cert):
     service_id = get_service_id(cert=cert)
     if service_id != self._service_id:
         logger.debug('service_id mismatch: %s expected: %s', service_id, self._service_id)
     return service_id == self._service_id
 def __init__(self, service_id, cert, reason):
     http.client.HTTPException.__init__(self)
     self._service_id = service_id
     self._cert_service_id = get_service_id(cert=cert)
     self.reason = reason
 def __init__(self, service_id, cert, reason):
     http.client.HTTPException.__init__(self)
     self._service_id = service_id
     self._cert_service_id = get_service_id(cert=cert)
     self.reason = reason
 def _check_service_id(self, cert):
     service_id = get_service_id(cert=cert)
     if service_id != self._service_id:
         logger.debug('service_id mismatch: %s expected: %s', service_id,
                      self._service_id)
     return service_id == self._service_id