#NEWLINE# def test_project_detail_controller_fetches_task_and_transitions_to_sprint_taskboard( ) : #NEWLINE# #INDENT# project = factories . project ( ) #NEWLINE# project_view = views . projects . ProjectDetailView ( project ) #NEWLINE# executor = factories . patched_executor ( ) #NEWLINE# state_machine = StateMachine ( mock . Mock ( ) , StateMachine . PROJECTS ) #NEWLINE# project_detail_controller = controllers . projects . ProjectDetailController ( project_view , executor , state_machine ) #NEWLINE# assert ( state_machine . state == state_machine . PROJECT_BACKLOG ) #NEWLINE# project_detail_controller . handle ( settings . data . main . keys . milestone ) #NEWLINE# assert ( state_machine . state == state_machine . PROJECT_MILESTONES )