#NEWLINE# def test_transfer_source_only( self ) : #NEWLINE# #INDENT# initial = float ( 100 ) #NEWLINE# initial_amounts = [ ( p . _id , initial ) for p in self . products ] #NEWLINE# self . submit_xml_form ( balance_submission ( initial_amounts ) ) #NEWLINE# deductions = [ ( p . _id , float ( ( 50 - ( 10 * i ) ) ) ) for ( i , p ) in enumerate ( self . products ) ] #NEWLINE# self . submit_xml_form ( transfer_source_only ( deductions ) ) #NEWLINE# for ( product , amt ) in deductions : #NEWLINE# #INDENT# self . check_product_stock ( self . sp , product , ( initial - amt ) , ( - amt ) )