Esempio n. 1
0
    def test_partition(self):
        result = self._fixture()

        r = []
        for partition in result.partitions(2):
            r.append(list(partition))
        eq_(r, [[(1, 1, 1), (2, 1, 2)], [(1, 3, 2), (4, 1, 2)]])

        eq_(result.all(), [])
Esempio n. 2
0
 def go():
     result = s.execute(stmt)
     for partition in result.partitions(3):
         pass