def testHomomorphicEncryptIntDecryptInt(self):
    logging.debug('Running testHomomorphicEncryptIntDecryptInt method.')
    # test success with different plaintexts
    for plaintext in (2, 5, 55, 333333333, 44444444444):
      ciphertext = self.cipher.Encrypt(plaintext)
      self.assertEqual(plaintext, self.cipher.Decrypt(ciphertext))
    # non int/long type should raise an error.
    try:
      self.cipher.Encrypt('22')
      self.fail()
    except __HOLE__:
      pass  # success
    try:
      self.cipher.Encrypt(22222222222222222222222)
      self.fail()
    except ValueError:
      pass  # success
dataset/ETHPy150Open google/encrypted-bigquery-client/src/ebq_crypto_test.py/HomomorphicIntCiphertTest.testHomomorphicEncryptIntDecryptInt