

def _get_status(self):
    'Get an IsEnabledResponse for the capabilities listed.\n\n    Returns:\n      IsEnabledResponse for the specified capabilities.\n\n    Raises:\n      UnknownCapabilityError: If an unknown capability was requested.\n    '
    req = IsEnabledRequest()
    req.set_package(self._package)
    for capability in self._capabilities:
        req.add_capability(capability)
    for method in self._methods:
        req.add_call(method)
    resp = capability_service_pb.IsEnabledResponse()
    self._stub_map.MakeSyncCall('capability_service', 'IsEnabled', req, resp)
    if (resp.summary_status() == IsEnabledResponse.UNKNOWN):
        raise UnknownCapabilityError()
    return resp

dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/api/capabilities/__init__.py CapabilitySet._get_status/original