def setUp(self):
        super(TestPackageMatcher, self).setUp()
        logsetting.init()
        file_matchers = [
            FileMatcher(
                min_progress=0.6,
                max_progress=0.9,
                filename='test_log',
                line_matchers={
                    'start': LineMatcher(
                        pattern=r'',
                        severity='',
                    )
                }
            )
        ]
        self.item_matcher = adapter_matcher.AdapterItemMatcher(file_matchers)
        self.file_reader_factory = FileReaderFactory(
            logdir=os.path.dirname(
                os.path.abspath(__file__)) + '/data'
        )
        self.package_matcher = adapter_matcher.PackageMatcher(
            package_installer_name='chef',
            adapter_pattern=r'openstack',
            item_matcher=self.item_matcher,
            file_reader_factory=self.file_reader_factory
        )
dataset/ETHPy150Open openstack/compass-core/compass/tests/log_analyzor/test_adapter_matcher.py/TestPackageMatcher.setUp/original