(self)
| 5954 | self.assertEqual(records[-1].funcName, 'test_styled_adapter') |
| 5955 | |
| 5956 | def test_nested_styled_adapter(self): |
| 5957 | records = self.recording.records |
| 5958 | adapter = PrefixAdapter(self.logger) |
| 5959 | adapter.prefix = '{}' |
| 5960 | adapter2 = StyleAdapter(adapter) |
| 5961 | adapter2.warning('Hello, {}!', 'world') |
| 5962 | self.assertEqual(str(records[-1].msg), '{} Hello, world!') |
| 5963 | self.assertEqual(records[-1].funcName, 'test_nested_styled_adapter') |
| 5964 | adapter2.log(logging.WARNING, 'Goodbye {}.', 'world') |
| 5965 | self.assertEqual(str(records[-1].msg), '{} Goodbye world.') |
| 5966 | self.assertEqual(records[-1].funcName, 'test_nested_styled_adapter') |
| 5967 | |
| 5968 | def test_find_caller_with_stacklevel(self): |
| 5969 | the_level = 1 |
nothing calls this directly
no test coverage detected