Пример #1
0
    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)
Пример #2
0
 def setUp(self):
     self._validate = IsValidDialect.load(self.sections)