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(), [])
def go(): result = s.execute(stmt) for partition in result.partitions(3): pass