#NEWLINE# def test_do_receiver_delete_not_found( self ) : #NEWLINE# #INDENT# service = mock . Mock ( ) #NEWLINE# args = { #NEWLINE# #INDENT# 'id' : [ 'receiver_id' ] , #NEWLINE# #UNINDENT# } #NEWLINE# args = self . _make_args ( args ) #NEWLINE# service . delete_receiver . side_effect = oexc . ResourceNotFound #NEWLINE# ex = self . assertRaises ( exc . CommandError , sh . do_receiver_delete , service , service ) #NEWLINE# msg = _ ( 'Failed to delete some of the specified receiver(s).' ) #NEWLINE# self . assertEqual ( msg , six . text_type ( ex ) )