#NEWLINE# def test_that_when_deleting_a_domain_fails_the_delete_domain_method_returns_false( self ) : #NEWLINE# #INDENT# '\n        tests False domain not deleted.\n        ' #NEWLINE# self . conn . delete_elasticsearch_domain . side_effect = ClientError ( error_content , 'delete_domain' ) #NEWLINE# result = boto_elasticsearch_domain . delete ( DomainName = 'testdomain' , ** conn_parameters ) #NEWLINE# self . assertFalse ( result [ 'deleted' ] )