Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword AttributeLoad NameLoad attr NameStore body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword ListLoad Str Call NameLoad NameLoad Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Slice Num Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A Tests for the collection_files export tool plugin. N/A argparse N/A os grr.lib access_control grr.lib aff4 grr.lib data_store grr.lib flags grr.lib rdfvalue grr.lib test_lib grr.lib utils grr.tools.export_plugins collection_files_plugin CollectionFilesExportPluginTest N/A N/A test_lib GRRBaseTest N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super CollectionFilesExportPluginTest self setUp N/A client_ids N/A N/A self SetupClients 1 N/A N/A self client_id N/A client_ids N/A 0 N/A N/A self out N/A N/A N/A self client_id Add fs/os N/A N/A data_store default_token N/A N/A access_control ACLToken username user reason reason N/A CreateDir N/A N/A self dirpath N/A N/A N/A path N/A N/A N/A self out Add dirpath N/A fd N/A N/A N/A aff4 FACTORY Create path VFSDirectory token N/A self token N/A N/A N/A fd Close N/A CreateFile N/A N/A self filepath N/A N/A N/A path N/A N/A N/A self out Add filepath N/A fd N/A N/A N/A aff4 FACTORY Create path VFSMemoryFile token N/A self token N/A N/A N/A fd Write some data N/A N/A N/A fd Close N/A path N/A CreateCollection N/A N/A self collection_path paths N/A N/A N/A N/A N/A N/A aff4 FACTORY Create collection_path RDFValueCollection token N/A self token fd N/A N/A p paths N/A N/A N/A N/A fd Add N/A N/A rdfvalue RDFURN p N/A testExportsFilesFromRDFURNs N/A N/A self N/A N/A N/A Check we can export a file without errors. N/A testfile1_path N/A N/A self CreateFile testfile1 N/A N/A N/A self CreateDir some_dir N/A testfile2_path N/A N/A self CreateFile some_dir/testfile2 N/A collection_path N/A N/A N/A self client_id Add Results N/A N/A N/A self CreateCollection collection_path N/A testfile1_path testfile2_path N/A plugin N/A N/A collection_files_plugin CollectionFilesExportPlugin N/A parser N/A N/A argparse ArgumentParser N/A N/A N/A plugin ConfigureArgParser parser N/A N/A N/A utils TempDirectory tmpdir N/A N/A N/A N/A plugin Run N/A N/A parser parse_args args N/A --path N/A str collection_path --output tmpdir N/A expected_outdir N/A N/A N/A os path join tmpdir N/A N/A N/A N/A self out Path N/A 1 N/A N/A N/A self assertTrue N/A testfile1 N/A N/A os listdir expected_outdir N/A N/A N/A self assertTrue N/A some_dir N/A N/A os listdir expected_outdir N/A N/A N/A self assertTrue N/A testfile2 N/A N/A os listdir N/A N/A N/A os path join expected_outdir some_dir N/A N/A main N/A N/A argv N/A N/A N/A N/A N/A test_lib main argv N/A N/A N/A __name__ __main__ N/A N/A N/A N/A flags StartMain main