'Test that the KEX_DH_GEX_GROUP message results in a
KEX_DH_GEX_INIT message with the client\'s Diffie-Hellman public key.'

def test_KEX_DH_GEX_GROUP(self):

    self.test_KEXINIT_groupexchange()
    self.proto.ssh_KEX_DH_GEX_GROUP('\x00\x00\x00\x01\x0f\x00\x00\x00\x01\x02')
    self.assertEqual(self.proto.p, 15)
    self.assertEqual(self.proto.g, 2)
    self.assertEqual(common.MP(self.proto.x)[5:], ('\x99' * 40))
    self.assertEqual(self.proto.e, common.MP(pow(2, self.proto.x, 15)))
    self.assertEqual(self.packets[1:], [(transport.MSG_KEX_DH_GEX_INIT, self.proto.e)])
