#NEWLINE# def test_save_values( self ) : #NEWLINE# #INDENT# 'Changed values are saved to all tickets.' #NEWLINE# first_ticket_id = self . _insert_ticket ( 'Test 1' , reporter = 'joe' , component = 'foo' ) #NEWLINE# second_ticket_id = self . _insert_ticket ( 'Test 2' , reporter = 'joe' ) #NEWLINE# selected_tickets = [ first_ticket_id , second_ticket_id ] #NEWLINE# new_values = { #NEWLINE# #INDENT# 'component' : 'bar' , #NEWLINE# #UNINDENT# } #NEWLINE# batch = BatchModifyModule ( self . env ) #NEWLINE# batch . _save_ticket_changes ( self . req , selected_tickets , new_values , '' , 'leave' ) #NEWLINE# self . assertFieldChanged ( first_ticket_id , 'component' , 'bar' ) #NEWLINE# self . assertFieldChanged ( second_ticket_id , 'component' , 'bar' )