

def will_remain_enabled_for(self, time=60):
    'Returns true if it will remain enabled for the specified amount of time.\n\n    Args:\n      time: Number of seconds in the future to look when checking for scheduled\n        downtime.\n\n    Returns:\n      True if there is no scheduled downtime for the specified capability\n      within the amount of time specified.\n\n    Raises:\n      UnknownCapabilityError, if a specified capability was not recognized.\n    '
    config = self._get_status()
    status = config.summary_status()
    if (status == IsEnabledResponse.ENABLED):
        return True
    elif (time == IsEnabledResponse.SCHEDULED_NOW):
        return False
    elif (status == IsEnabledResponse.SCHEDULED_FUTURE):
        if config.has_time_until_scheduled():
            return (config.time_until_scheduled() >= time)
        else:
            return True
    elif (status == IsEnabledResponse.DISABLED):
        return False
    else:
        return False

dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/api/capabilities/__init__.py CapabilitySet.will_remain_enabled_for/VarMisuse@49/202 `status`->`time`