#NEWLINE# def CheckFlow( self ) : #NEWLINE# #INDENT# found = False #NEWLINE# for windir in [ 'Windows' , 'WINDOWS' ] : #NEWLINE# #INDENT# urn = self . client_id . Add ( '/fs/tsk' ) #NEWLINE# fd = aff4 . FACTORY . Open ( urn , mode = 'r' , token = self . token ) #NEWLINE# volumes = list ( fd . OpenChildren ( ) ) #NEWLINE# for volume in volumes : #NEWLINE# #INDENT# fd = aff4 . FACTORY . Open ( volume . urn . Add ( windir ) , mode = 'r' , token = self . token ) #NEWLINE# children = list ( fd . OpenChildren ( ) ) #NEWLINE# for child in children : #NEWLINE# #INDENT# if ( self . file_to_find == child . urn . Basename ( ) ) : #NEWLINE# #INDENT# found = True #NEWLINE# self . delete_urns . add ( child . urn . Add ( self . file_to_find ) ) #NEWLINE# self . delete_urns . add ( child . urn ) #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# self . assertTrue ( found )