#NEWLINE# def test_modify_reporter_with_ticket_admin( self ) : #NEWLINE# #INDENT# 'User with TICKET_ADMIN can batch modify the reporter.' #NEWLINE# self . _insert_ticket ( 'Ticket 1' , reporter = 'user1' ) #NEWLINE# self . _insert_ticket ( 'Ticket 2' , reporter = 'user1' ) #NEWLINE# req = MockRequest ( self . env , authname = 'has_ta_&_bm' , args = { #NEWLINE# #INDENT# 'batchmod_value_reporter' : 'user2' , #NEWLINE# 'batchmod_value_comment' : '' , #NEWLINE# 'action' : 'leave' , #NEWLINE# 'selected_tickets' : '1,2' , #NEWLINE# #UNINDENT# } ) #NEWLINE# bmm = BatchModifyModule ( self . env ) #NEWLINE# self . assertRaises ( RequestDone , self . process_request , req ) #NEWLINE# self . assertFieldChanged ( 1 , 'reporter' , 'user2' ) #NEWLINE# self . assertFieldChanged ( 2 , 'reporter' , 'user2' )