#NEWLINE# def test_mgr_add_health_monitor_missing_cert( self ) : #NEWLINE# #INDENT# lb = self . loadbalancer #NEWLINE# mgr = lb . manager #NEWLINE# mgr . api . method_put = Mock ( return_value = ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# fake_type = 'HTTP' #NEWLINE# fake_delay = 99 #NEWLINE# fake_timeout = 99 #NEWLINE# fake_attemptsBeforeDeactivation = 99 #NEWLINE# fake_path = '/fake' #NEWLINE# fake_statusRegex = None #NEWLINE# fake_bodyRegex = None #NEWLINE# fake_hostHeader = 'fake' #NEWLINE# lb . protocol = fake_type #NEWLINE# self . assertRaises ( exc . MissingHealthMonitorSettings , mgr . add_health_monitor , lb , type = fake_type , delay = fake_attemptsBeforeDeactivation , timeout = fake_timeout , attemptsBeforeDeactivation = fake_attemptsBeforeDeactivation , path = fake_path , statusRegex = fake_statusRegex , bodyRegex = fake_bodyRegex , hostHeader = fake_hostHeader )