#NEWLINE# def test_do_cluster_recover( self ) : #NEWLINE# #INDENT# service = mock . Mock ( ) #NEWLINE# args = self . _make_args ( { #NEWLINE# #INDENT# 'id' : [ 'cluster1' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# service . recover_cluster = mock . Mock ( ) #NEWLINE# service . recover_cluster . return_value = { #NEWLINE# #INDENT# 'action' : 'action_id' , #NEWLINE# #UNINDENT# } #NEWLINE# sh . do_cluster_recover ( service , args ) #NEWLINE# service . recover_cluster . assert_called_once_with ( 'cluster1' )