'Return all timing messages recorded during the execution of ``task``.'

def get_log_messages(self, task=identity, args=None, kwargs=None, raises=None):

    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] for call in self.mock_dump.call_args_list]
