tests/framework/hooks/test_context_hooks.py
def _assert_hook_call_record_has_expected_parameters(
        call_record: logging.LogRecord, expected_parameters: List[str]
    ):
        """Assert the given call record has all expected parameters."""
        for param in expected_parameters:
            assert hasattr(call_record, param)
Assert the given call record has all expected parameters.
Assert the given call record has all expected parameters.
Assert the given call record has all expected parameters .
def _assert_hook_call_record_has_expected_parameters(
        call_record: logging.LogRecord, expected_parameters: List[str]
    ):
        for param in expected_parameters:
            assert hasattr(call_record, param)
def _assert_hook_call_record_has_expected_parameters ( call_record : logging . LogRecord , expected_parameters : List [ str ] ) : for param in expected_parameters : assert hasattr ( call_record , param )
Assert the given call record has all expected parameters.
Assert the given call record has all expected parameters .
"""Assert the given call record has all expected parameters."""
call_record
logging.LogRecord
expected_parameters
List[str]