def METHOD_NAME(self):
    """
    Permission Error may occur when trying to save report.
    GH-2147
    """
    rep = OWReport()
    filenames = ["f.report", "f.html"]
    for filename in filenames:
        with patch("orangewidget.report.owreport.open",
                   create=True, side_effect=PermissionError),\
                patch("AnyQt.QtWidgets.QFileDialog.getSaveFileName",
                      return_value=(filename, 'Report (*.report)')),\
                patch("AnyQt.QtWidgets.QMessageBox.exec",
                      return_value=True), \
                patch("orangewidget.report.owreport.log.error") as log:
            rep.save_report()
            log.assert_called()