'test that fetching data in chunks returns the correct results'

def testFetchMany(self):

    self.cursor.execute(u'select    *    From    TestStrings    order    by    IntCol')
    self.failUnlessEqual(self.cursor.fetchmany(3), self.rawData[0:3])
    self.failUnlessEqual(self.cursor.fetchmany(2), self.rawData[3:5])
    self.failUnlessEqual(self.cursor.fetchmany(4), self.rawData[5:9])
    self.failUnlessEqual(self.cursor.fetchmany(3), self.rawData[9:])
    self.failUnlessEqual(self.cursor.fetchmany(3), [])
