def METHOD_NAME(
    self,
    mock_capture_exception: MagicMock,
):
    print_and_capture_handler_exception(self.handler_error)
    assert mock_capture_exception.call_args.args[0] == self.handler_error