#NEWLINE# def test_status_chronos_jobs_get_desired_state_human( ) : #NEWLINE# #INDENT# jobs = [ { #NEWLINE# #INDENT# 'name' : 'my_service my_instance gityourmom configyourdad' , #NEWLINE# #UNINDENT# } ] #NEWLINE# complete_job_config = mock . Mock ( ) #NEWLINE# complete_job_config . get_desired_state_human = mock . Mock ( ) #NEWLINE# verbose = False #NEWLINE# with contextlib . nested ( mock . patch ( 'paasta_tools.chronos_serviceinit.format_chronos_job_status' , autospec = True , return_value = 'job_status_output' ) , mock . patch ( 'paasta_tools.chronos_serviceinit.get_running_tasks_from_active_frameworks' , autospec = True , return_value = [ ] ) ) : #NEWLINE# #INDENT# actual = chronos_serviceinit . status_chronos_jobs ( actual , complete_job_config , verbose ) #NEWLINE# assert ( 'Desired:' in actual ) #NEWLINE# assert ( repr ( complete_job_config . get_desired_state_human . return_value ) in actual )