#NEWLINE# def test_do_port_create_valid_fields_values( self ) : #NEWLINE# #INDENT# client_mock = mock . MagicMock ( ) #NEWLINE# args = mock . MagicMock ( ) #NEWLINE# args . address = 'address' #NEWLINE# args . node_uuid = 'uuid' #NEWLINE# args . extra = [ 'key1=val1' , 'key2=val2' ] #NEWLINE# args . json = False #NEWLINE# p_shell . do_port_create ( client_mock , args ) #NEWLINE# client_mock . port . create . assert_called_once_with ( address = 'address' , node_uuid = 'uuid' , extra = { #NEWLINE# #INDENT# 'key1' : 'val1' , #NEWLINE# 'key2' : 'val2' , #NEWLINE# #UNINDENT# } )