#NEWLINE# def test_delete_record_does_not_exist( self ) : #NEWLINE# #INDENT# zone = self . driver . list_zones ( ) [ 0 ] #NEWLINE# record = self . driver . list_records ( zone = zone ) [ 0 ] #NEWLINE# GandiMockHttp . type = 'RECORD_DOES_NOT_EXIST' #NEWLINE# try : #NEWLINE# #INDENT# self . driver . delete_record ( record = record ) #NEWLINE# #UNINDENT# except RecordDoesNotExistError : #NEWLINE# #INDENT# e = sys . exc_info ( ) [ 1 ] #NEWLINE# self . assertEqual ( self . record_id , record . id ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . fail ( 'Exception was not thrown' )