def METHOD_NAME(self, task=identity, args=None, kwargs=None, raises=None):
    """
    Return all timing messages recorded during the execution of ``task``.
    """
    if args is None:
        args = []
    if kwargs is None:
        kwargs = {}
    if raises is None:
        task(*args, **kwargs)
    else:
        self.assertRaises(raises, task, *args, **kwargs)
    return [
        call[0][0]  # log_message
        for call in self.mock_dump.call_args_list
    ]