

def setUp(self):
    super(TestOSMatcher, self).setUp()
    logsetting.init()
    file_matchers = [FileMatcher(min_progress=0.6, max_progress=0.9, filename='test_log', line_matchers={
        'start': LineMatcher(pattern='', severity=''),
    })]
    self.item_matcher = adapter_matcher.AdapterItemMatcher(file_matchers)
    file_reader_factory = FileReaderFactory(logdir=(os.path.dirname(os.path.abspath(__file__)) + '/data'))
    self.os_matcher = adapter_matcher.OSMatcher(os_installer_name='cobbler', os_pattern='CentOS.*', item_matcher=self.item_matcher, file_reader_factory=file_reader_factory)

dataset/ETHPy150Open openstack/compass-core/compass/tests/log_analyzor/test_adapter_matcher.py TestOSMatcher.setUp/original