#NEWLINE# def testShowsPerFileDownloadButtonForFileFinderHunt( self ) : #NEWLINE# #INDENT# with self . ACLChecksDisabled ( ) : #NEWLINE# #INDENT# client_id = self . SetupClients ( 1 ) [ 0 ] #NEWLINE# #UNINDENT# stat_entry = rdf_client . StatEntry ( aff4path = client_id . Add ( 'fs/os/foo/bar' ) ) #NEWLINE# values = [ file_finder . FileFinderResult ( stat_entry = stat_entry ) ] #NEWLINE# with self . ACLChecksDisabled ( ) : #NEWLINE# #INDENT# self . CreateGenericHuntWithCollection ( values = values ) #NEWLINE# #UNINDENT# self . Open ( '/' ) #NEWLINE# self . Click ( 'css=a[grrtarget=ManageHunts]' ) #NEWLINE# self . Click ( "css=td:contains('GenericHunt')" ) #NEWLINE# self . Click ( 'css=li[heading=Results]' ) #NEWLINE# self . WaitUntil ( self . IsElementPresent , 'css=grr-results-collection grr-downloadable-urn button' )