def testHomomorphicEncryptFloatDecryptFloat(self):
    logging.debug('Running testHomomorphicEncryptFloatDecryptFloat method.')
    # test success with different plaintexts
    for plaintext in (1.22, 0.4565, 55.45, 33.3333333, 444444444.44):
      ciphertext = self.cipher.Encrypt(plaintext)
      self.assertEqual(plaintext, self.cipher.Decrypt(ciphertext))
    # encrypting a too large float should raise an error.
    try:
      self.cipher.Encrypt(1.0*2**400)
      self.fail()
    except __HOLE__:
      pass  # success
    # non int/long type should raise an error.
    try:
      self.cipher.Encrypt('22')
      self.fail()
    except ValueError:
      pass  # success
dataset/ETHPy150Open google/encrypted-bigquery-client/src/ebq_crypto_test.py/HomomorphicFloatCipherTest.testHomomorphicEncryptFloatDecryptFloat