#NEWLINE# def test_exact( self ) : #NEWLINE# #INDENT# "\n        Test\n          (AND: ('money', 0 USD))\n        results in;\n          (AND: (AND: ('money', 0 USD), ('money_currency', u'USD')))\n        " #NEWLINE# actual = _expand_money_args ( ModelWithNonMoneyField ( ) , [ Q ( money = Money ( 0 , 'USD' ) ) ] ) #NEWLINE# assert ( len ( actual ) == 1 ) #NEWLINE# arg = actual [ 0 ] #NEWLINE# assert isinstance ( arg , Q ) #NEWLINE# assert ( arg . connector == Q . AND ) #NEWLINE# assert ( len ( arg . children ) == 1 ) #NEWLINE# assert isinstance ( arg . children [ 0 ] , Q ) #NEWLINE# assert ( arg . children [ 0 ] . connector == Q . AND ) #NEWLINE# assert_leafs ( arg . children [ 0 ] . children )