#NEWLINE# def test_do_node_recover_not_found( self ) : #NEWLINE# #INDENT# service = mock . Mock ( ) #NEWLINE# ex = exc . HTTPNotFound #NEWLINE# service . recover_node . side_effect = ex #NEWLINE# args = self . _make_args ( { #NEWLINE# #INDENT# 'id' : [ 'node1' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# ex = self . assertRaises ( exc . CommandError , sh . do_node_recover , service , args ) #NEWLINE# msg = _ ( 'Failed to recover some of the specified nodes.' ) #NEWLINE# self . assertEqual ( service , six . text_type ( ex ) )