def will_remain_enabled_for(self, time=60):
    config = self._get_status()

    status = config.summary_status()
    if status == IsEnabledResponse.ENABLED:
      return True
    elif status == 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
Returns true if it will remain enabled for the specified amount of time.
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/api/capabilities/__init__.py/CapabilitySet.will_remain_enabled_for