def validate(self):
        log.debug("Default options validation for %s", self)
        try:
            self.options.validate()
        except Exception, e:
            log.debug("Validation error: %s", str(e).strip())
            raise ValidationError(self, str(e))

        for opt in self.options.get_by_type(TYPE_INPUT):
            if opt.source is not None and opt.source != self:
                continue
            if opt.is_dependency():
                continue
            for value in opt._value:
                if isinstance(value, basestring):
                    if not exists(value):
                        raise ValidationError(self,
                                              "Input file not found: %s" %
                                              value)
add plugin
dataset/ETHPy150Open thasso/pyjip/jip/tools.py/Tool.validate--crossover with--dataset/ETHPy150Open enthought/envisage/envisage/tests/application_test_case.py/ApplicationTestCase.test_add_plugin