def test_03_Files_List_GetList_Iterate(self):
    drive = GoogleDrive(self.ga)
    flist = drive.ListFile({'q': "title = '%s' and trashed = false"%self.title,
                            'maxResults': 2})
    files = []
    while True:
      try:
        x = flist.GetList()
        self.assertTrue(len(x) <= 2)
        files.extend(x)
      except __HOLE__:
        break
    for file1 in self.file_list:
      found = False
      for file2 in files:
        if file1['id'] == file2['id']:
          found = True
      self.assertEqual(found, True)
dataset/ETHPy150Open googledrive/PyDrive/pydrive/test/test_filelist.py/GoogleDriveFileListTest.test_03_Files_List_GetList_Iterate