#NEWLINE# def __ConnectAndGenerateError( self ) : #NEWLINE# #INDENT# 'Connect to the database, perform a query which raises an error' #NEWLINE# connection = self . pool . acquire ( ) #NEWLINE# cursor = connection . cursor ( ) #NEWLINE# self . failUnlessRaises ( cx_Oracle . DatabaseError , connection . execute , 'select 1 / 0 from dual' )