#NEWLINE# def test_balance_submit( self ) : #NEWLINE# #INDENT# amounts = [ ( p . _id , float ( ( i * 10 ) ) ) for ( i , p ) in enumerate ( self . products ) ] #NEWLINE# self . submit_xml_form ( balance_submission ( amounts ) ) #NEWLINE# for ( product , amt ) in amounts : #NEWLINE# #INDENT# self . check_product_stock ( self . sp , self , amt , 0 )