Exemplo n.º 1
0
 def test_sendObj(self):
     cb = ConnectionBox()
     msg = negGuiMsg(GUI_ERROR_SIGNAL, requestNr = 42, parentKey = 43)
     QObject.connect(msg, msg.getSignal(), cb.slotSlot)
     anyObject = 42
     msg.sendObj(anyObject)
     self.assertEqual(1, cb.signalArrived)
Exemplo n.º 2
0
 def test_getters(self):
     msg = negGuiMsg(GUI_ERROR_SIGNAL, requestNr = 42, parentKey = 43)
     self.assertEqual(PYSIGNAL(GUI_ERROR_SIGNAL), msg.getSignal())
     self.assertEqual(43, msg.getParentKey())