#NEWLINE# def test_encoder_bn( ) : #NEWLINE# #INDENT# e = CryptoEnc ( ) #NEWLINE# s = e . encode ( [ Bn ( 1 ) , Bn ( 2 ) , B ( urandom ( 160 ) ) ] ) #NEWLINE# x = CryptoDec ( ) . decode ( s ) #NEWLINE# assert ( ( x [ 0 ] == 1 ) and ( x [ 1 ] == 2 ) )