def checkSignals(self): """ Check if signal flow between Application class and its sub and helper classes works """ obj_ut = Application() obj_ut.sigCreateModelView.connect(self.mv_manager.slot_createModelView) obj_ut.createModelViewPair() assert self.mv_manager.signal_create == True, 'Signal sigCreateModelView not recieved'
def checkSignals(self): """ Check if signal flow between Application class and its sub and helper classes works """ obj_ut = Application() # it's already tested, that this id possible # Connect the sigCreateModelView signal to a ModelViewManager (in this case a stub) obj_ut.sigCreateModelView.connect(self.mv_manager.slot_createModelView) # Trigger the signal from the application object by calling its createModelViewPair method obj_ut.createModelViewPair() assert self.mv_manager.signal_create == True, 'Signal sigCreateModelView not recieved'