#NEWLINE# def test_issues_controller_change_issue_severity( ) : #NEWLINE# #INDENT# project = factories . project ( ) #NEWLINE# project_view = views . projects . ProjectDetailView ( project ) #NEWLINE# project_view . issues . notifier = mock . Mock ( ) #NEWLINE# executor = factories . patched_executor ( ) #NEWLINE# _ = mock . Mock ( ) #NEWLINE# project_detail_controller = controllers . projects . ProjectDetailController ( project_detail_controller , executor , _ ) #NEWLINE# project_detail_controller . handle ( settings . data . main . keys . issues ) #NEWLINE# project_view . issues . notifier . reset_mock ( ) #NEWLINE# issue = project_view . issues . issues . widget . contents ( ) [ 0 ] [ 0 ] #NEWLINE# combo = issue . base_widget . widget . contents [ 3 ] [ 0 ] #NEWLINE# item = combo . menu . get_item ( 0 ) #NEWLINE# combo . item_changed ( item , True ) #NEWLINE# assert ( project_view . issues . notifier . info_msg . call_count == 1 ) #NEWLINE# assert ( executor . update_issue . call_args . call_list ( ) [ 0 ] [ 0 ] [ 1 ] [ 'severity' ] == item . value ) #NEWLINE# assert ( executor . update_issue . call_count == 1 )