#NEWLINE# def test_get_healthchecks_invalid_mode( self ) : #NEWLINE# #INDENT# marathon_config = marathon_tools . MarathonServiceConfig ( service = 'service' , cluster = 'cluster' , instance = 'instance' , config_dict = { #NEWLINE# #INDENT# 'healthcheck_mode' : 'none' , #NEWLINE# #UNINDENT# } , branch_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# namespace_config = marathon_tools . ServiceNamespaceConfig ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# with raises ( marathon_tools . InvalidMarathonHealthcheckMode ) : #NEWLINE# #INDENT# marathon_config . get_healthchecks ( marathon_config )