def load(cls, sections, log=None, raise_errors=True, prefix=None): prefix = prefix or cls.PREFIX section_exists = SectionExists(sections, log, raise_errors=raise_errors) should_ignore = ShouldIgnore(sections, log) is_validate_dialect = IsValidDialect.load(sections, log, raise_errors=raise_errors) return cls(sections, prefix, section_exists, should_ignore, is_validate_dialect)
def setUp(self): self._validate = IsValidDialect.load(self.sections)