def METHOD_NAME(self, mock_open):
    main_win, w = self.newWidget()
    mock_open.return_value = "/no_exist", None
    self.checkMenus(w, True)
    w._open_action.triggered.emit()
    self.checkMenus(w, True)
    mock_open.return_value = self.input_file, None
    w._open_action.triggered.emit()
    self.checkMenus(w, True, save=True, recent=True, recent_count=1)