'See @L{_discoverAndVerify}'

def _verifyDiscoveredServices(self, claimed_id, services, to_match_endpoints):

    failure_messages = []
    for endpoint in services:
        for to_match_endpoint in to_match_endpoints:
            try:
                self._verifyDiscoverySingle(endpoint, to_match_endpoint)
            except ProtocolError as why:
                failure_messages.append(str(why))
            else:
                return endpoint
    else:
        oidutil.log(('Discovery    verification    failure    for    %s' % (claimed_id,)))
        for failure_message in failure_messages:
            oidutil.log(('    *    Endpoint    mismatch:    ' + failure_message))
        raise DiscoveryFailure(('No    matching    endpoint    found    after    discovering    %s' % (claimed_id,)), None)
