#NEWLINE# @ mock . patch ( 'paasta_tools.cli.utils.validate_service_instance' , autospec = True ) #NEWLINE# @ mock . patch ( 'paasta_tools.cli.utils.load_marathon_service_config' , autospec = True ) #NEWLINE# def test_get_instance_config_marathon( mock_load_marathon_service_config , mock_validate_service_instance ) : #NEWLINE# #INDENT# mock_validate_service_instance . return_value = 'marathon' #NEWLINE# mock_load_marathon_service_config . return_value = 'fake_service_config' #NEWLINE# actual = utils . get_instance_config ( service = 'fake_service' , instance = 'fake_instance' , cluster = 'fake_cluster' , soa_dir = 'fake_soa_dir' ) #NEWLINE# assert ( actual . call_count == 1 ) #NEWLINE# assert ( mock_load_marathon_service_config . call_count == 1 ) #NEWLINE# assert ( actual == 'fake_service_config' )