'Test that KEXDH_REPLY disconnects if the signature is bad.'

def test_disconnectKEXDH_REPLYBadSignature(self):

    self.test_KEXDH_REPLY()
    self.proto._continueKEXDH_REPLY(None, self.blob, 3, 'bad    signature')
    self.checkDisconnected(transport.DISCONNECT_KEY_EXCHANGE_FAILED)
