(ipsyn, tcpsyn) = createsyn(self, tcb, from_, to)
createwritepacket(self, tcb, ipsyn, tcpsyn, from_, to)
(ipsynreceived, tcpsynreceived) = receive(self, tcb, to, from_) # NOTICE TO AND FROM_ SWITCHED
assertEqual(ipsyn, ipsynreceived, 'the fail warn')
For the complete understanding see the receive method
def receive(self, tcb, from_, to):