#NEWLINE# def test_03_Files_List_GetList_Iterate( self ) : #NEWLINE# #INDENT# drive = GoogleDrive ( self . ga ) #NEWLINE# flist = drive . ListFile ( { #NEWLINE# #INDENT# 'q' : ( "title = '%s' and trashed = false" % self . title ) , #NEWLINE# 'maxResults' : 2 , #NEWLINE# #UNINDENT# } ) #NEWLINE# files = [ ] #NEWLINE# while True : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# x = flist . GetList ( ) #NEWLINE# self . assertTrue ( ( len ( x ) <= 2 ) ) #NEWLINE# files . extend ( x ) #NEWLINE# #UNINDENT# except StopIteration : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# for file1 in self . file_list : #NEWLINE# #INDENT# found = False #NEWLINE# for file2 in files : #NEWLINE# #INDENT# if ( file1 [ 'id' ] == file2 [ 'id' ] ) : #NEWLINE# #INDENT# found = True #NEWLINE# #UNINDENT# #UNINDENT# self . assertEqual ( found , True )