def testPseudonymEncryptDecryptUnicodeString(self):
    logging.debug('Running testPseudonymEncryptDecryptUtf8String method.')
    # test success with different plaintexts
    for plaintext in (u'22', u'this is test string one', u'-1.3', u'5545',
                      u"""this is a longer test string that should go on for
                      more than two AES blocks or perhaps many more of them
                      also."""):
      ciphertext = self.cipher.Encrypt(plaintext)
      self.assertEqual(plaintext, self.cipher.Decrypt(ciphertext))
    # non string type should raise an error.
    try:
      self.cipher.Encrypt(22)
      self.fail()
    except __HOLE__:
      pass  # success
dataset/ETHPy150Open google/encrypted-bigquery-client/src/ebq_crypto_test.py/PseudonymCiphertTest.testPseudonymEncryptDecryptUnicodeString