#NEWLINE# def test_projects_controller_click_on_project_requests_the_project_detail( ) : #NEWLINE# #INDENT# projects = factories . projects ( ) #NEWLINE# projects_view = views . projects . ProjectsView ( ) #NEWLINE# executor = factories . patched_executor ( ) #NEWLINE# _ = mock . Mock ( ) #NEWLINE# projects_controller = controllers . projects . ProjectsController ( projects_view , executor , _ ) #NEWLINE# signals . emit ( projects_view . project_buttons [ 0 ] , 'click' ) #NEWLINE# executor . project_detail . assert_called_with ( executor [ 0 ] )