#NEWLINE# def test_query_five( self ) : #NEWLINE# #INDENT# BankAccount = self . BankAccount #NEWLINE# session = Session ( ) #NEWLINE# query = session . query ( func . avg ( BankAccount . balance . as_currency ( 'eur' ) ) ) #NEWLINE# self . assert_compile ( query , 'SELECT avg(:balance_1 * bank_account.balance) AS avg_1 FROM bank_account' , checkparams = { #NEWLINE# #INDENT# 'balance_1' : Decimal ( '0.724743' ) , #NEWLINE# #UNINDENT# } )