'Test that if the server receives a KEX_DH_GEX_REQUEST_OLD message
and the key exchange algorithm is not set, we raise a ConchError.'

def test_checkBad_KEX_ECDH_INIT_CurveName(self):

    self.proto.kexAlg = 'bad-curve'
    self.proto.keyAlg = 'ssh-rsa'
    self.assertRaises(UnsupportedAlgorithm, self.proto._ssh_KEX_ECDH_INIT, common.NS('unused-key'))
