'test executing a statement multiple times (named args)'

def testExecuteManyByName(self):

    self.cursor.execute(u'truncate    table    TestExecuteMany')
    rows = [{u'value': n} for n in range(250)]
    self.cursor.arraysize = 100
    statement = u'insert    into    TestExecuteMany    (IntCol)    values    (:value)'
    self.cursor.executemany(statement, rows)
    self.connection.commit()
    self.cursor.execute(u'select    count(*)    from    TestExecuteMany')
    (count,) = self.cursor.fetchone()
    self.failUnlessEqual(count, len(rows))
