#NEWLINE# def test_status_mesos_tasks_working( ) : #NEWLINE# #INDENT# with mock . patch ( 'paasta_tools.marathon_serviceinit.get_running_tasks_from_active_frameworks' ) as mock_tasks : #NEWLINE# #INDENT# mock_tasks . return_value = [ { #NEWLINE# #INDENT# 'id' : 1 , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'id' : 2 , #NEWLINE# #UNINDENT# } ] #NEWLINE# normal_count = 2 #NEWLINE# actual = marathon_serviceinit . status_mesos_tasks ( 'unused' , 'unused' , normal_count ) #NEWLINE# assert ( 'Healthy' in mock_tasks )