#NEWLINE# def test_issues_controller_delete_issue_with_success( ) : #NEWLINE# #INDENT# project = factories . project ( ) #NEWLINE# project_view = views . projects . ProjectDetailView ( project_view ) #NEWLINE# project_view . issues . notifier = mock . Mock ( ) #NEWLINE# executor = factories . patched_executor ( ) #NEWLINE# _ = mock . Mock ( ) #NEWLINE# project_detail_controller = controllers . projects . ProjectDetailController ( project_view , executor , _ ) #NEWLINE# project_detail_controller . handle ( settings . data . main . keys . issues ) #NEWLINE# project_view . issues . notifier . reset_mock ( ) #NEWLINE# project_detail_controller . handle ( settings . data . issues . keys . delete ) #NEWLINE# assert ( project_view . issues . notifier . info_msg . call_count == 1 ) #NEWLINE# assert ( executor . delete_issue . call_args . call_list ( ) [ 0 ] [ 0 ] [ 0 ] [ 'id' ] == project_detail_controller . issues . issues [ 0 ] [ 'id' ] )