'confirm an exception is raised after closing a connection'

def testExceptionOnClose(self):

    connection = cx_Oracle.connect(self.username, self.password, self.tnsentry)
    connection.close()
    self.failUnlessRaises(cx_Oracle.InterfaceError, connection.rollback)
