#NEWLINE# @ test . create_stubs ( { #NEWLINE# #INDENT# neutronclient : ( 'create_member' , ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_member_create( self ) : #NEWLINE# #INDENT# form_data = { #NEWLINE# #INDENT# 'pool_id' : 'abcdef-c3eb-4fee-9763-12de3338041e' , #NEWLINE# 'address' : '10.0.1.2' , #NEWLINE# 'protocol_port' : '80' , #NEWLINE# 'weight' : '10' , #NEWLINE# 'admin_state_up' : True , #NEWLINE# #UNINDENT# } #NEWLINE# member = { #NEWLINE# #INDENT# 'member' : { #NEWLINE# #INDENT# 'id' : 'abcdef-c3eb-4fee-9763-12de3338041e' , #NEWLINE# 'pool_id' : 'abcdef-c3eb-4fee-9763-12de3338041e' , #NEWLINE# 'address' : '10.0.1.2' , #NEWLINE# 'protocol_port' : '80' , #NEWLINE# 'weight' : '10' , #NEWLINE# 'admin_state_up' : True , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# neutronclient . create_member ( { #NEWLINE# #INDENT# 'member' : form_data , #NEWLINE# #UNINDENT# } ) . AndReturn ( member ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# ret_val = api . lbaas . member_create ( self . request , ** form_data ) #NEWLINE# self . assertIsInstance ( ret_val , api . lbaas . Member )