Module Import alias Import alias Import alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Str attr SubscriptLoad Call AttributeLoad NameLoad attr Str Slice Num Assign NameStore Str FunctionDef arguments args NameParam defaults vararg body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword Str Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam defaults vararg body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam defaults vararg body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword Str Call AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam defaults vararg body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad decorator_list
N/A N/A os N/A unittest N/A mock checks.check_status AgentStatus TestRunFiles N/A N/A unittest TestCase N/A N/A  Tests that runfiles (.pid, .sock, .pickle etc.) are written to internal agent folders N/A _my_dir N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ N/A _mac_run_dir N/A N/A / join N/A N/A N/A _my_dir split / N/A -4 N/A _linux_run_dir /opt/sd-agent/run test_agent_status_pickle_file_win32 N/A N/A self N/A mocks N/A N/A  Test pickle file location on win32  N/A expected_path N/A N/A N/A os path join C:\Windows\App Data ServerDensity AgentStatus.pickle N/A N/A N/A self assertEqual N/A N/A AgentStatus _get_pickle_path expected_path N/A N/A N/A mock patch checks.check_status._windows_commondata_path return_value C:\Windows\App Data N/A N/A mock patch utils.platform.Platform.is_win32 return_value True test_agent_status_pickle_file_mac_dmg N/A N/A self N/A mocks N/A N/A  Test pickle file location when running a Mac DMG install  N/A expected_path N/A N/A N/A os path join N/A self _mac_run_dir AgentStatus.pickle N/A N/A N/A self assertEqual N/A N/A AgentStatus _get_pickle_path expected_path N/A N/A N/A mock patch utils.pidfile.PidFile.get_dir return_value _mac_run_dir N/A N/A mock patch utils.platform.Platform.is_win32 return_value False N/A N/A mock patch utils.platform.Platform.is_mac return_value True test_agent_status_pickle_file_mac_source N/A N/A self N/A mocks N/A N/A  Test pickle file location when running a Mac source install  N/A expected_path N/A N/A N/A os path join /a/test/tmp/dir AgentStatus.pickle N/A N/A N/A self assertEqual N/A N/A AgentStatus _get_pickle_path expected_path N/A N/A N/A mock patch utils.pidfile.tempfile.gettempdir return_value /a/test/tmp/dir N/A N/A mock patch utils.platform.Platform.is_win32 return_value False N/A N/A mock patch utils.platform.Platform.is_mac return_value True test_agent_status_pickle_file_linux N/A N/A self N/A mocks N/A N/A  Test pickle file location when running on Linux  N/A expected_path N/A N/A N/A os path join /opt/sd-agent/run AgentStatus.pickle N/A N/A N/A self assertEqual N/A N/A AgentStatus _get_pickle_path expected_path N/A N/A N/A mock patch os.path.isdir return_value True N/A N/A mock patch utils.pidfile.PidFile.get_dir return_value _linux_run_dir N/A N/A mock patch utils.platform.Platform.is_win32 return_value False N/A N/A mock patch utils.platform.Platform.is_mac return_value False N/A