#NEWLINE# def test_do_cluster_node_del( self ) : #NEWLINE# #INDENT# service = mock . Mock ( ) #NEWLINE# args = { #NEWLINE# #INDENT# 'id' : 'cluster_id' , #NEWLINE# 'nodes' : 'node1,node2' , #NEWLINE# #UNINDENT# } #NEWLINE# args = self . _make_args ( resp ) #NEWLINE# node_ids = [ 'node1' , 'node2' ] #NEWLINE# resp = { #NEWLINE# #INDENT# 'action' : 'CLUSTER_NODE_DEL' , #NEWLINE# #UNINDENT# } #NEWLINE# service . cluster_del_nodes . return_value = resp #NEWLINE# sh . do_cluster_node_del ( service , args ) #NEWLINE# service . cluster_del_nodes . assert_called_once_with ( 'cluster_id' , node_ids )