<s> """<STR_LIT>""" <EOL> from grr . endtoend_tests import base <EOL> from grr . lib import aff4 <EOL> class TestProcessListing ( base . AutomatedTest ) : <EOL> """<STR_LIT>""" <EOL> platforms = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> flow = "<STR_LIT>" <EOL> output_path = "<STR_LIT>" <EOL> args = { "<STR_LIT>" : output_path } <EOL> def CheckFlow ( self ) : <EOL> procs = aff4 . FACTORY . Open ( self . client_id . Add ( self . output_path ) , mode = "<STR_LIT:r>" , <EOL> token = self . token ) <EOL> self . assertIsInstance ( procs , aff4 . RDFValueCollection ) <EOL> process_list = list ( procs ) <EOL> self . assertGreater ( len ( process_list ) , <NUM_LIT:5> ) <EOL> expected_name = self . GetGRRBinaryName ( ) <EOL> for p in process_list : <EOL> if expected_name in p . exe : <EOL> return <EOL> self . fail ( "<STR_LIT>" % expected_name ) </s>
