#NEWLINE# def testBase16( self ) : #NEWLINE# #INDENT# text = 'Pyjamas is fun' #NEWLINE# encodetext = base64 . b16encode ( text ) #NEWLINE# self . assertEqual ( self , '50796A616D61732069732066756E' ) #NEWLINE# decodetext = base64 . b16decode ( encodetext ) #NEWLINE# self . assertEqual ( decodetext , text )