code: def _check_devices_active_licensed(self):
          '''All devices should be in an active/licensed state.
  
          :raises: UnexpectedClusterState
          '''
  
          if len(self._get_devices_by_activation_state('active')) != \
                  len(self.devices):
              msg = "One or more devices not in 'Active' and licensed state."
              raise UnexpectedDeviceGroupState(msgf _check_devices_active_licensed(self):
          '''All devices should be in an active/licensed state.
  
          :raises: UnexpectedClusterState
          '''
  
          if len(self._get_devices_by_activation_state('active')) != \
                  len(self.devices):
              msg = "One or more devices not in 'Active' and licensed state."
              raise UnexpectedDeviceGroupState(msg)
docs: All devices should be in an active/licensed state.
  
          :raises: UnexpectedClusterState