'When a KEXINIT message is received which is not a reply to an earlier
KEXINIT message which was sent, a KEXINIT reply is sent.'

def test_sendKEXINITReply(self):

    self.finishKeyExchange(self.proto)
    del self.packets[:]
    self.proto.dispatchMessage(transport.MSG_KEXINIT, self._A_KEXINIT_MESSAGE)
    self.assertEqual(len(self.packets), 1)
    self.assertEqual(self.packets[0][0], transport.MSG_KEXINIT)
