@classmethod
    def validate_tasks_types(cls, types):
        """Check that passed types are actuall tasks types

        :param types: list of types
        """
        cls.validate_schema(types, base_types.STRINGS_ARRAY)

        non_existent_types = set(consts.INTERNAL_TASKS) - set(types)
        if non_existent_types:
            raise errors.InvalidData("Task types {0} do not exist".format(
                ','.join(non_existent_types)))
        return types
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/api/v1/validators/orchestrator_graph.py/TaskDeploymentValidator.validate_tasks_types/swapped operands of `-`