def test_isRoiMode(self, qtbot):
     ccWidget = CameraControlWidget()
     ccWidget.show()
     qtbot.addWidget(ccWidget)
     cc = CameraController(ccWidget)
     cc.setupCamera("GaussianCamera")
     qtbot.mouseClick(ccWidget.startStopButton, Qt.LeftButton)
     #cc.startStopCamera(True)
     isRoiMode = cc.isRoiMode()
     assert isRoiMode is False
     qtbot.mouseClick(ccWidget.acquireRoiCheckBox, Qt.LeftButton)
     isRoiMode = cc.isRoiMode()
     assert isRoiMode is True
 def test_stateAtAcquireFramesStop(self, qtbot):
     ccWidget = CameraControlWidget()
     ccWidget.show()
     qtbot.addWidget(ccWidget)
     cc = CameraController(ccWidget)
     cc.setupCamera("GaussianCamera")
     qtbot.mouseClick(ccWidget.startStopButton, Qt.LeftButton)
     #cc.startStopCamera(True)
     qtbot.mouseClick(ccWidget.acquireFramesButton, Qt.LeftButton)
     qtbot.mouseClick(ccWidget.acquireRoiCheckBox, Qt.LeftButton)
     assert cc.isRoiMode() is True
     qtbot.mouseClick(ccWidget.acquireFramesButton, Qt.LeftButton)
     assert cc.isRoiMode() is False
     assert cc.currentCameraFps() == 24
     assert ccWidget.acquireFramesButton.isChecked() is False