#NEWLINE# def _test_encrypt( self , encrypt , plaintext , key , pass_key = True ) : #NEWLINE# #INDENT# if pass_key : #NEWLINE# #INDENT# ciphertext = encrypt ( plaintext , plaintext ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ciphertext = encrypt ( plaintext ) #NEWLINE# #UNINDENT# self . assertEqual ( plaintext , triplesec . decrypt ( ciphertext , key ) )