

def is_enabled(self):
    'Tests whether the capabilities is currently enabled.\n\n    Returns:\n      True if API calls that require these capabillities will succeed.\n\n    Raises:\n      UnknownCapabilityError, if a specified capability was not recognized.\n    '
    config = self._get_status()
    return (config.summary_status() in (IsEnabledResponse.ENABLED, IsEnabledResponse.SCHEDULED_FUTURE, IsEnabledResponse.SCHEDULED_NOW))

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