'test executing with arraydmlrowcounts mode enabled'

def testArrayDMLRowCountsOn(self):

    self.cursor.execute(u'truncate    table    TestArrayDML')
    rows = [(1, u'First', 100), (2, u'Second', 200), (3, u'Third', 300), (4, u'Fourth', 300), (5, u'Fifth', 300)]
    sql = u'insert    into    TestArrayDML    (IntCol,StringCol,IntCol2)    values    (:1,:2,:3)'
    self.cursor.executemany(sql, rows, arraydmlrowcounts=True)
    self.connection.commit()
    self.failUnlessEqual(self.cursor.getarraydmlrowcounts(), [1L, 1L, 1L, 1L, 1L])
    self.cursor.execute(u'select    count(*)    from    TestArrayDML')
    (count,) = self.cursor.fetchone()
    self.failUnlessEqual(count, len(rows))
