def METHOD_NAME(self):
    """
    Test that window closes when file is toggled to a file w/o a gold
    """
    self._widget.GoldDiffPlugin.GoldToggle.setChecked(QtCore.Qt.Checked)
    self._widget.GoldDiffPlugin.GoldToggle.clicked.emit(True)
    self._widget.FilePlugin.FileList.setCurrentIndex(1)
    self._widget.FilePlugin.FileList.currentIndexChanged.emit(1)
    self.assertFalse(self._widget.GoldDiffPlugin.isVisible())