#NEWLINE# @ test . create_stubs ( { #NEWLINE# #INDENT# neutronclient : ( 'show_health_monitor' , ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_pool_health_monitor_get( self ) : #NEWLINE# #INDENT# monitor = { #NEWLINE# #INDENT# 'health_monitor' : { #NEWLINE# #INDENT# 'id' : 'abcdef-c3eb-4fee-9763-12de3338041e' , #NEWLINE# 'type' : 'PING' , #NEWLINE# 'delay' : '10' , #NEWLINE# 'timeout' : '10' , #NEWLINE# 'max_retries' : '10' , #NEWLINE# 'http_method' : 'GET' , #NEWLINE# 'url_path' : '/monitor' , #NEWLINE# 'expected_codes' : '200' , #NEWLINE# 'admin_state_up' : True , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# neutronclient . show_health_monitor ( monitor [ 'health_monitor' ] [ 'id' ] ) . AndReturn ( monitor ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# ret_val = api . lbaas . pool_health_monitor_get ( self . request , monitor [ 'health_monitor' ] [ 'id' ] ) #NEWLINE# self . assertIsInstance ( ret_val , api . lbaas . PoolMonitor )