#NEWLINE# def test_create_zone_zone_zone_already_exists( self ) : #NEWLINE# #INDENT# LiquidWebMockHttp . type = 'CREATE_ZONE_ZONE_ALREADY_EXISTS' #NEWLINE# try : #NEWLINE# #INDENT# self . driver . create_zone ( domain = 'test.com' ) #NEWLINE# #UNINDENT# except ZoneAlreadyExistsError : #NEWLINE# #INDENT# e = sys . exc_info ( ) [ 1 ] #NEWLINE# self . assertEqual ( self . zone_id , 'test.com' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . fail ( 'Exception was not thrown' )