'test executing with arraydmlrowcounts mode disabled'

def testArrayDMLRowCountsOff(self):

    self.cursor.execute('truncate    table    TestArrayDML')
    rows = [(1, 'First'), (2, 'Second')]
    sql = 'insert    into    TestArrayDML    (IntCol,StringCol)    values    (:1,:2)'
    self.cursor.executemany(sql, rows, arraydmlrowcounts=False)
    self.failUnlessRaises(cx_Oracle.DatabaseError, self.cursor.getarraydmlrowcounts)
    rows = [(3, 'Third'), (4, 'Fourth')]
    self.cursor.executemany(sql, rows)
    self.failUnlessRaises(cx_Oracle.DatabaseError, self.cursor.getarraydmlrowcounts)
