def testNormalTransmitResetAddress(self): ti = TransmitIntent('addr', 'msg') self.assertEqual(ti.targetAddr, 'addr') self.assertEqual(ti.message, 'msg') ti.changeTargetAddr('addr2') self.assertEqual(ti.targetAddr, 'addr2') self.assertEqual(ti.message, 'msg')
def testNormalTransmitResetAddress(self): ti = TransmitIntent('addr', 'msg') assert ti.targetAddr == 'addr' assert ti.message == 'msg' ti.changeTargetAddr('addr2') assert ti.targetAddr == 'addr2' assert ti.message == 'msg'