Merge "Python 3: use next(foo) instead of foo.next()"

This commit is contained in:
Jenkins 2014-06-09 04:24:58 +00:00 committed by Gerrit Code Review
commit c4e3edcdd5
1 changed files with 1 additions and 1 deletions

View File

@ -759,7 +759,7 @@ class ImageManagerTest(testtools.TestCase):
'return_req_id': [],
}
images = self.mgr.list(**fields)
images.next()
next(images)
self.assertEqual(fields['return_req_id'], ['req-1234'])
def test_image_list_with_notfound_owner(self):