def testIteration(self):
    mock_query = self.mox.CreateMockAnything()
    step = 2

    first_iteration = [1, 2]
    second_iteration = [3, 4]

    entities = first_iteration + second_iteration

    mock_query.fetch(step).AndReturn(first_iteration)
    mock_query.cursor().AndReturn('cursor1')
    mock_query.with_cursor('cursor1')
    mock_query.fetch(step).AndReturn(second_iteration)
    mock_query.cursor().AndReturn('cursor2')
    mock_query.with_cursor('cursor2')
    mock_query.fetch(step).AndReturn([])

    self.mox.ReplayAll()
    out = []
    for entity in gae_util.QueryIterator(mock_query, step=step):
      out.append(entity)
    self.assertEqual(out, entities)
    self.mox.VerifyAll()
List information about the objects in the bucket.
dataset/ETHPy150Open google/simian/src/tests/simian/mac/common/gae_util_test.py/QueryIteratorTest.testIteration--crossover with--dataset/ETHPy150Open wehriam/awspider/awspider/aws/s3.py/AmazonS3.getBucket