#NEWLINE# def testBalanceToText( self ) : #NEWLINE# #INDENT# self . api . enqueue ( 'GET PROFILE PSTN_BALANCE_CURRENCY' , 'PROFILE PSTN_BALANCE_CURRENCY EUR' ) #NEWLINE# self . api . enqueue ( 'GET PROFILE PSTN_BALANCE' , 'PROFILE PSTN_BALANCE 1234' ) #NEWLINE# t = self . obj . BalanceToText #NEWLINE# self . assertInstance ( t , unicode ) #NEWLINE# self . assertEqual ( self , 'EUR 12.34' ) #NEWLINE# self . failUnless ( self . api . is_empty ( ) )