Module Expr Str TryExcept body Import alias handlers ExceptHandler type NameLoad body Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr decorator_list NameLoad decorator_list Import alias Import alias Import alias Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num If UnaryOpNot NameLoad body Break Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num If UnaryOpNot NameLoad body Break Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpAdd Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A 
Misc commands tester
 N/A N/A N/A hashlib N/A N/A N/A ImportError N/A N/A md5 hashlib N/A object N/A N/A Fake hashlib module as a class md5 N/A N/A N/A N/A N/A N/A N/A md5 new N/A staticmethod N/A N/A os N/A agent_test N/A agentlib N/A commands.update TestUpdateCommand N/A N/A agent_test TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestUpdateCommand self setUp N/A N/A self update_inst N/A N/A N/A self commands command_instance agentupdate N/A test_1_valid_md5 N/A N/A self N/A N/A N/A Test 'update' command's ability to get a file from a URL
        and verify valid MD5
         N/A test_file N/A N/A N/A os path abspath __file__ N/A f N/A file test_file rb N/A m N/A N/A hashlib md5 N/A True N/A N/A file_data N/A N/A f read 8096 N/A N/A file_data N/A N/A N/A N/A N/A m update file_data N/A N/A N/A f close N/A md5sum N/A N/A m hexdigest N/A url N/A file:// test_file N/A local_file N/A N/A N/A self update_inst _get_to_local_file url md5sum N/A f N/A file local_file N/A m N/A N/A hashlib md5 N/A True N/A N/A file_data N/A N/A f read 8096 N/A N/A file_data N/A N/A N/A N/A N/A m update file_data N/A N/A N/A f close N/A N/A N/A os unlink local_file N/A N/A N/A self assertEqual md5sum N/A N/A m hexdigest N/A test_2_invalid_md5 N/A N/A self N/A N/A N/A Test 'update' command's ability to get a file from a URL
        and verify valid MD5
         N/A test_file N/A N/A N/A os path abspath __file__ N/A url N/A file:// test_file N/A N/A N/A self assertRaises N/A N/A commands update AgentUpdateError N/A N/A self update_inst _get_to_local_file url bogus N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A agent_test main