def METHOD_NAME(title, text, error_string):
    from tkinter.messagebox import showerror  # a mock
    showerror.assert_called_once_with(title, text, detail=error_string)
    assert caplog.record_tuples == [("porcupine.plugins.filemanager", logging.ERROR, text)]