'Test that a KEXINIT packet with a group1 or group14 key exchange
results in a correct KEXDH_INIT response.
@param kexAlgorithm: The key exchange algorithm to use
@type kexAlgorithm: L{str}'

def assertKexInitResponseForDH(self, kexAlgorithm):

    self.proto.supportedKeyExchanges = [kexAlgorithm]
    self.proto.dataReceived(self.transport.value())
    self.assertEqual(common.MP(self.proto.x)[5:], ('\x99' * 64))
    self.assertEqual(self.packets, [(transport.MSG_KEXDH_INIT, self.proto.e)])
