@classmethod
    def _validate_cdn_data(cls, cdn_id, cdn_data):
        for key in ['id', 'edge_server']:
            if key not in cdn_data:
                raise BootstrapValidationError("invalid cdn data received, missing '%s' key" % key)

        if cdn_id != cdn_data['id']:
            raise BootstrapValidationError("host data mismatch. Expecting data for %s but got data for %s"
                                           % (cdn_id, cdn_data['id']))
        return cdn_data
dataset/ETHPy150Open CacheBrowser/cachebrowser/cachebrowser/bootstrap.py/Bootstrapper._validate_cdn_data/original