Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad 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 NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr AttributeLoad NameLoad attr attr NameLoad attr Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str keyword Str keyword Str keyword NameLoad keyword Str keyword Str keyword Str keyword Str keyword NameLoad keyword Num keyword NameLoad keyword NameLoad keyword Dict Str Str keyword Str keyword NameLoad keyword ListLoad keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad Dict Str Str Str Str Str Str Num Num Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Str Num Num NameLoad Call AttributeLoad NameLoad attr ListLoad Str Call AttributeLoad NameLoad attr Str Str Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Str Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str attr Call AttributeLoad NameLoad attr ListLoad Str Assign NameStore ListLoad Dict Str Str Str Str Str ListLoad Str Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str attr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str attr NameLoad Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Call AttributeLoad NameLoad attr Str Str attr NameLoad Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str attr Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Call AttributeLoad NameLoad attr Str Str attr NameLoad Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Call AttributeLoad NameLoad attr NameLoad attr Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Call AttributeLoad NameLoad attr Str Str attr NameLoad Assign NameStore Call NameLoad keyword Str keyword Str keyword Str keyword Str keyword Str keyword Str Assign NameStore Call NameLoad keyword Dict Str Str Str Str Num Num Str Str Assign NameStore Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str attr Str Expr Call NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Call AttributeLoad NameLoad attr Str NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr ListLoad Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Call AttributeLoad NameLoad attr Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str attr Str Expr Call NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Call AttributeLoad NameLoad attr Str NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr ListLoad Str Str Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Call AttributeLoad NameLoad attr Str attr NameLoad Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Call AttributeLoad NameLoad attr Str attr NameLoad Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Call AttributeLoad NameLoad attr Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr Str attr NameLoad Expr Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr Str attr NameLoad Assign NameStore Call NameLoad keyword Str Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str NameLoad keyword Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr ListLoad Str Str Call AttributeLoad Str attr NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Expr Call NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr TupleLoad Str NameLoad Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad Str attr NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr ListLoad Str Str Call AttributeLoad Str attr NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Expr Call NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad Str attr NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore BinOpAdd BinOpAdd AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpAdd BinOpAdd AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A json N/A locale N/A os N/A platform N/A re N/A subprocess N/A sys N/A tempfile N/A time N/A unittest N/A uuid N/A yaml N/A SOAPpy flexmock flexmock N/A lib N/A N/A N/A N/A N/A N/A N/A os path dirname __file__ N/A os sep .. N/A os sep lib N/A N/A N/A N/A sys path append lib appscale_logger AppScaleLogger custom_exceptions BadConfigurationException custom_exceptions ShellException local_state LocalState node_layout NodeLayout parse_args ParseArgs TestLocalState N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A flexmock os N/A N/A flexmock N/A os path N/A N/A N/A N/A os path should_call exists N/A N/A self keyname booscale N/A N/A self locations_yaml N/A N/A N/A N/A LocalState LOCAL_APPSCALE_PATH locations- N/A self keyname .yaml N/A test_make_appscale_directory_creation N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A os path should_receive exists with_args N/A LocalState LOCAL_APPSCALE_PATH and_return False once N/A N/A N/A N/A N/A N/A N/A os should_receive mkdir with_args N/A LocalState LOCAL_APPSCALE_PATH and_return N/A N/A N/A LocalState make_appscale_directory N/A test_ensure_appscale_isnt_running_but_it_is N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A os path should_receive exists with_args N/A N/A LocalState get_secret_key_location N/A self keyname and_return True N/A N/A N/A self assertRaises BadConfigurationException N/A LocalState ensure_appscale_isnt_running N/A self keyname False N/A test_ensure_appscale_isnt_running_but_it_is_w_force N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A os path should_receive exists with_args N/A self locations_yaml and_return True N/A N/A N/A LocalState ensure_appscale_isnt_running N/A self keyname True N/A test_ensure_appscale_isnt_running_and_it_isnt N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A os path should_receive exists with_args N/A self locations_yaml and_return False N/A N/A N/A LocalState ensure_appscale_isnt_running N/A self keyname False N/A test_generate_deployment_params N/A N/A self N/A N/A N/A options N/A flexmock name options table cassandra keyname boo appengine 1 autoscale False group bazgroup infrastructure ec2 machine ami-ABCDEFG instance_type m1.large use_spot_instances True max_spot_price 1.23 alter_etc_resolv True clear_datastore False disks N/A node-1 vol-ABCDEFG zone my-zone-1b verbose True user_commands N/A flower_password abc max_memory N/A ParseArgs DEFAULT_MAX_MEMORY N/A node_layout N/A NodeLayout N/A table infrastructure min max cassandra ec2 1 1 N/A expected N/A alter_etc_resolv clear_datastore table hostname ips keyname replication appengine autoscale group machine infrastructure instance_type min_images max_images use_spot_instances user_commands max_spot_price zone verbose flower_password max_memory True False cassandra public1 N/A N/A json dumps N/A boo 1 1 False bazgroup ami-ABCDEFG ec2 m1.large 1 1 True N/A N/A json dumps N/A 1.23 N/A N/A json dumps my-zone-1b True abc N/A ParseArgs DEFAULT_MAX_MEMORY N/A actual N/A N/A LocalState generate_deployment_params options node_layout public1 N/A max_spot_price 1.23 N/A N/A N/A self assertEquals expected actual N/A test_obscure_dict N/A N/A self N/A N/A N/A creds N/A ec2_access_key ec2_secret_key CLOUD_EC2_ACCESS_KEY CLOUD_EC2_SECRET_KEY ABCDEFG HIJKLMN OPQRSTU VWXYZAB N/A expected N/A ec2_access_key ec2_secret_key CLOUD_EC2_ACCESS_KEY CLOUD_EC2_SECRET_KEY ***DEFG ***KLMN ***RSTU ***YZAB N/A actual N/A N/A LocalState obscure_dict creds N/A N/A N/A self assertEquals N/A expected N/A ec2_access_key N/A actual N/A ec2_access_key N/A N/A N/A self assertEquals N/A expected N/A ec2_secret_key N/A actual N/A ec2_secret_key N/A N/A N/A self assertEquals N/A expected N/A CLOUD_EC2_ACCESS_KEY N/A actual N/A CLOUD_EC2_ACCESS_KEY N/A N/A N/A self assertEquals N/A expected N/A CLOUD_EC2_SECRET_KEY N/A actual N/A CLOUD_EC2_SECRET_KEY N/A test_update_local_metadata N/A N/A self N/A N/A N/A fake_soap N/A flexmock name fake_soap N/A N/A N/A N/A N/A N/A N/A fake_soap should_receive get_all_public_ips with_args the secret and_return N/A N/A json dumps N/A public1 N/A role_info N/A N/A public_ip private_ip jobs public1 private1 N/A shadow db_master N/A N/A N/A N/A N/A N/A N/A fake_soap should_receive get_role_info with_args the secret and_return N/A N/A json dumps role_info N/A N/A flexmock SOAPpy N/A N/A N/A N/A N/A N/A N/A SOAPpy should_receive SOAPProxy with_args https://public1:17443 and_return fake_soap N/A fake_secret N/A flexmock name fake_secret N/A N/A N/A N/A N/A fake_secret should_receive read and_return the secret N/A builtins N/A flexmock N/A N/A sys modules N/A __builtin__ N/A N/A N/A builtins should_call open N/A N/A N/A N/A N/A N/A N/A builtins should_receive open with_args N/A N/A LocalState get_secret_key_location booscale r and_return fake_secret N/A fake_locations_yaml N/A flexmock name fake_locations_yaml N/A N/A N/A N/A N/A N/A N/A fake_locations_yaml should_receive write with_args N/A N/A yaml dump N/A load_balancer instance_id secret infrastructure group ips table db_master zone public1 i-ABCDEFG the secret ec2 boogroup public1 cassandra node-0 my-zone-1b and_return N/A N/A N/A N/A N/A N/A N/A builtins should_receive open with_args N/A N/A LocalState get_locations_yaml_location booscale w and_return fake_locations_yaml N/A fake_locations_json N/A flexmock name fake_locations_json N/A N/A N/A N/A N/A N/A N/A fake_locations_json should_receive write with_args N/A N/A json dumps role_info and_return N/A N/A N/A N/A N/A N/A N/A builtins should_receive open with_args N/A N/A LocalState get_locations_json_location booscale w and_return fake_locations_json N/A options N/A flexmock name options table cassandra infrastructure ec2 keyname booscale group boogroup zone my-zone-1b N/A node_layout N/A NodeLayout options N/A min max infrastructure table 1 1 ec2 cassandra N/A host public1 N/A instance_id i-ABCDEFG N/A N/A N/A LocalState update_local_metadata options node_layout host instance_id N/A test_extract_tgz_app_to_dir N/A N/A self N/A N/A N/A N/A flexmock os N/A N/A N/A N/A N/A os should_receive mkdir and_return N/A N/A flexmock N/A os path N/A N/A N/A N/A N/A N/A N/A N/A os path should_receive abspath with_args relative/app.tar.gz and_return /tmp/relative/app.tar.gz N/A N/A flexmock LocalState N/A N/A N/A N/A N/A N/A N/A LocalState should_receive shell with_args N/A N/A re compile tar zxvf '/tmp/relative/app.tar.gz' False and_return N/A N/A N/A N/A N/A os should_receive listdir and_return N/A one_folder N/A N/A N/A N/A N/A N/A N/A N/A os path should_receive isdir with_args N/A N/A re compile one_folder and_return True N/A location N/A N/A LocalState extract_tgz_app_to_dir relative/app.tar.gz False N/A N/A N/A self assertEquals True N/A one_folder location N/A test_extract_tgz_app_to_dir_with_dotfiles N/A N/A self N/A N/A N/A N/A flexmock os N/A N/A N/A N/A N/A os should_receive mkdir and_return N/A N/A flexmock N/A os path N/A N/A N/A N/A N/A N/A N/A N/A os path should_receive abspath with_args relative/app.tar.gz and_return /tmp/relative/app.tar.gz N/A N/A flexmock LocalState N/A N/A N/A N/A N/A N/A N/A LocalState should_receive shell with_args N/A N/A re compile tar zxvf '/tmp/relative/app.tar.gz' False and_return N/A N/A N/A N/A N/A os should_receive listdir and_return N/A one_folder .dot_file .dot_folder N/A N/A N/A N/A N/A N/A N/A N/A os path should_receive isdir with_args N/A N/A re compile one_folder and_return True N/A N/A N/A N/A N/A N/A N/A N/A os path should_receive isdir with_args N/A N/A re compile .dot_file and_return False N/A N/A N/A N/A N/A N/A N/A N/A os path should_receive isdir with_args N/A N/A re compile .dot_folder and_return True N/A location N/A N/A LocalState extract_tgz_app_to_dir relative/app.tar.gz False N/A N/A N/A self assertTrue N/A one_folder location N/A test_shell_exceptions N/A N/A self N/A N/A N/A fake_tmp_file N/A flexmock name tempfile N/A N/A N/A N/A N/A fake_tmp_file should_receive write and_return N/A N/A N/A N/A N/A fake_tmp_file should_receive read and_return N/A N/A N/A N/A N/A fake_tmp_file should_receive seek and_return N/A N/A N/A N/A N/A fake_tmp_file should_receive close and_return N/A N/A N/A N/A N/A N/A flexmock tempfile should_receive NamedTemporaryFile and_return fake_tmp_file N/A N/A N/A N/A N/A N/A flexmock tempfile should_receive TemporaryFile and_return fake_tmp_file N/A fake_result N/A flexmock name result N/A N/A fake_result returncode 1 N/A N/A N/A N/A N/A fake_result should_receive wait and_return N/A fake_subprocess N/A flexmock subprocess N/A N/A N/A N/A N/A fake_subprocess should_receive Popen and_return fake_result N/A N/A fake_subprocess STDOUT N/A N/A N/A N/A N/A N/A flexmock time should_receive sleep and_return N/A N/A N/A self assertRaises ShellException N/A LocalState shell fake_cmd False N/A N/A N/A self assertRaises ShellException N/A LocalState shell fake_cmd False stdin fake_stdin N/A N/A N/A N/A N/A fake_subprocess should_receive Popen and_raise OSError N/A N/A N/A self assertRaises ShellException N/A LocalState shell fake_cmd False N/A N/A N/A self assertRaises ShellException N/A LocalState shell fake_cmd False stdin fake_stdin N/A test_generate_crash_log N/A N/A self N/A N/A N/A crashlog_suffix 123456 N/A N/A flexmock uuid N/A N/A N/A N/A N/A uuid should_receive uuid4 and_return crashlog_suffix N/A exception_class Exception N/A exception_message baz message N/A exception N/A Exception exception_message N/A stacktrace N/A N/A join N/A Traceback (most recent call last):   File "<stdin>", line 2, in <module> N/A N/A {0}: {1} format exception_class exception_message N/A N/A flexmock platform N/A N/A N/A N/A N/A platform should_receive platform and_return MyOS N/A N/A N/A N/A N/A platform should_receive python_implementation and_return MyPython N/A N/A flexmock locale N/A N/A N/A N/A N/A locale should_receive getlocale and_return N/A 'Murica None N/A expected N/A N/A {0}log-{1} format N/A LocalState LOCAL_APPSCALE_PATH crashlog_suffix N/A fake_file N/A flexmock name fake_file N/A N/A N/A N/A N/A fake_file should_receive write with_args str N/A fake_builtins N/A flexmock N/A N/A sys modules N/A __builtin__ N/A N/A N/A fake_builtins should_call open N/A N/A N/A N/A N/A N/A N/A fake_builtins should_receive open with_args expected w and_return fake_file N/A N/A flexmock AppScaleLogger N/A N/A N/A AppScaleLogger should_receive warn N/A actual N/A N/A LocalState generate_crash_log exception stacktrace N/A N/A N/A self assertEquals expected actual N/A test_generate_crash_log_on_unsupported_locale N/A N/A self N/A N/A N/A crashlog_suffix 123456 N/A N/A flexmock uuid N/A N/A N/A N/A N/A uuid should_receive uuid4 and_return crashlog_suffix N/A exception_class Exception N/A exception_message baz message N/A exception N/A Exception exception_message N/A stacktrace N/A N/A join N/A Traceback (most recent call last):   File "<stdin>", line 2, in <module> N/A N/A {0}: {1} format exception_class exception_message N/A N/A flexmock platform N/A N/A N/A N/A N/A platform should_receive platform and_return MyOS N/A N/A N/A N/A N/A platform should_receive python_implementation and_return MyPython N/A N/A flexmock locale N/A N/A N/A N/A N/A locale should_receive setlocale and_raise N/A locale Error N/A expected N/A N/A {0}log-{1} format N/A LocalState LOCAL_APPSCALE_PATH crashlog_suffix N/A fake_file N/A flexmock name fake_file N/A N/A N/A N/A N/A fake_file should_receive write with_args str N/A fake_builtins N/A flexmock N/A N/A sys modules N/A __builtin__ N/A N/A N/A fake_builtins should_call open N/A N/A N/A N/A N/A N/A N/A fake_builtins should_receive open with_args expected w and_return fake_file N/A N/A flexmock AppScaleLogger N/A N/A N/A AppScaleLogger should_receive warn N/A actual N/A N/A LocalState generate_crash_log exception stacktrace N/A N/A N/A self assertEquals expected actual N/A test_get_key_path_from_local_appscale N/A N/A self N/A N/A N/A keyname keyname N/A local_appscale_key_file_path N/A N/A N/A LocalState LOCAL_APPSCALE_PATH keyname .key N/A N/A N/A N/A N/A N/A N/A N/A os path should_receive isfile with_args local_appscale_key_file_path and_return True N/A actual_key_path N/A N/A LocalState get_key_path_from_name keyname N/A N/A N/A self assertEquals local_appscale_key_file_path actual_key_path N/A etc_appscale_key_file_path N/A N/A N/A LocalState ETC_APPSCALE_KEY_PATH keyname .key N/A N/A N/A N/A N/A N/A N/A N/A os path should_receive isfile with_args local_appscale_key_file_path and_return False N/A N/A N/A N/A N/A N/A N/A N/A os path should_receive isfile with_args etc_appscale_key_file_path and_return True N/A actual_key_path N/A N/A LocalState get_key_path_from_name keyname N/A N/A N/A self assertEquals etc_appscale_key_file_path actual_key_path N/A N/A