@classmethod
  def validate_action(cls, action):
    """Verifies the given action is a valid duplicate jar rule action.

    :returns: The action if it is valid.
    :raises: ``ValueError`` if the action is invalid.
    """
    if cls._VALID_ACTIONS not in action:
      raise ValueError('The supplied action must be one of {valid}, given: {given}'
                       .format(valid=cls._VALID_ACTIONS, given=action))
    return action
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/backend/jvm/targets/jvm_binary.py/Duplicate.validate_action/swapped operands of `not in`