def METHOD_NAME(self):
    """Simple test that the plot is showing and hiding when activating the
    action"""
    self.plotImage.addImage(self.image, origin=(0, 0), legend='sino')
    self.plotImage.show()
    histoAction = self.plotImage.getIntensityHistogramAction()
    # test the pixel intensity diagram is showing
    button = getQToolButtonFromAction(histoAction)
    self.assertIsNot(button, None)
    self.mouseMove(button)
    self.mouseClick(button, qt.Qt.LeftButton)
    self.qapp.processEvents()
    self.assertTrue(histoAction.getHistogramWidget().isVisible())
    # test the pixel intensity diagram is hiding
    self.qapp.setActiveWindow(self.plotImage)
    self.qapp.processEvents()
    self.mouseMove(button)
    self.mouseClick(button, qt.Qt.LeftButton)
    self.qapp.processEvents()
    self.assertFalse(histoAction.getHistogramWidget().isVisible())