#NEWLINE# def testProbabilisticEncryptDecryptUnicodeString( self ) : #NEWLINE# #INDENT# logging . debug ( 'Running testProbabilisticEncryptDecryptUtf8String method.' ) #NEWLINE# for plaintext in ( '22' , 'this is test string one' , '-1.3' , '5545' , 'this is a longer test string that should go on for\n                      more than two AES blocks or perhaps many more of them\n                      also.' ) : #NEWLINE# #INDENT# ciphertext = self . cipher . Encrypt ( plaintext ) #NEWLINE# self . assertEqual ( plaintext , self . cipher . Decrypt ( ciphertext ) ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . cipher . Encrypt ( 22 ) #NEWLINE# self . fail ( ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# pass