#NEWLINE# def testBase32( self ) : #NEWLINE# #INDENT# text = 'Pyjamas is fun' #NEWLINE# encodetext = base64 . b32encode ( text ) #NEWLINE# self . assertEqual ( encodetext , 'KB4WUYLNMFZSA2LTEBTHK3Q=' ) #NEWLINE# decodetext = base64 . b32decode ( encodetext ) #NEWLINE# self . assertEqual ( decodetext , text )