

def test_sendIntentToTransportFailureCallback(self):
    self.resetCounters()
    testIntent = TransmitIntent(ActorAddress(None), 'message', self.successCB, self.failureCB)
    self.testTrans.scheduleTransmit(None, testIntent)
    self.assertEqual(1, len(self.testTrans.intents))
    self.testTrans.forTestingCompleteAPendingIntent(SendStatus.Failed)
    self.assertEqual(testIntent.successCBcalls, 0)
    self.assertEqual(self.failureCBcalls, 1)

dataset/ETHPy150Open godaddy/Thespian/thespian/system/transport/test/test_asyncBase.py TestAsyncTransportBase.test_sendIntentToTransportFailureCallback/VarMisuse@78/117 `self`->`testIntent`