def test_no_filename_update_progress(self):
        file_matchers = [
            FileMatcher(
                min_progress=0.6,
                max_progress=0.9,
                filename='test_log',
                line_matchers={
                    'start': LineMatcher(
                        pattern=r'',
                        severity='',
                    )
                }
            )
        ]
        adapter_item_matcher = adapter_matcher.AdapterItemMatcher(
            file_matchers
        )
        file_reader_factory = FileReaderFactory(
            logdir=os.path.dirname(
                os.path.abspath(__file__)) + '/data'
        )
        state = {
            'message': 'dummy',
            'severity': 'dummy',
            'percentage': 0.5
        }
        log_history_mapping = {
            'dummy_log': {
                'filename': 'test_log',
                'partial_line': '',
                'position': 0,
                'line_matcher_name': 'start',
                'percentage': 0.7,
                'message': '',
                'severity': 'INFO'
            }
        }
        adapter_item_matcher.update_progress(
            file_reader_factory=file_reader_factory,
            name='host1',
            state=state,
            log_history_mapping=log_history_mapping
        )
        self.assertEqual(0.6, state['percentage'])
dataset/ETHPy150Open openstack/compass-core/compass/tests/log_analyzor/test_adapter_matcher.py/TestAdapterItemMatcher.test_no_filename_update_progress/original