'Test that if the server received a bad name for a curve
we raise an UnsupportedAlgorithm error.'

def test_checkBad_KEX_INIT_CurveName(self):

    kexmsg = ((((((((((((('\xaa' * 16) + common.NS('ecdh-sha2-nistp256')) + common.NS('ssh-rsa')) + common.NS('aes256-ctr')) + common.NS('aes256-ctr')) + common.NS('hmac-sha1')) + common.NS('hmac-sha1')) + common.NS('none')) + common.NS('none')) + common.NS('')) + common.NS('')) + '\x00') + '\x00\x00\x00\x00')
    self.proto.ssh_KEXINIT(kexmsg)
    self.assertRaises(AttributeError)
    self.assertRaises(UnsupportedAlgorithm)
