#NEWLINE# def test_delete_zone_does_not_exist( self ) : #NEWLINE# #INDENT# zone = self . driver . list_zones ( ) [ 0 ] #NEWLINE# GandiMockHttp . type = 'ZONE_DOES_NOT_EXIST' #NEWLINE# try : #NEWLINE# #INDENT# self . driver . delete_zone ( zone = zone ) #NEWLINE# #UNINDENT# except ZoneDoesNotExistError : #NEWLINE# #INDENT# e = sys . exc_info ( ) [ 1 ] #NEWLINE# self . assertEqual ( e . zone_id , zone . id ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . fail ( 'Exception was not thrown' )