Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore TupleLoad Str Str Str Str Str Str Assign NameStore TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad TupleLoad Str ListLoad Str TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Str Str Assign NameStore ListLoad TupleLoad Str ListLoad Str Str TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Assign NameStore ListLoad TupleLoad Str ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Assign NameStore ListLoad TupleLoad Str ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Assign NameStore ListLoad TupleLoad Str ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad NameStore body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore TupleLoad Str Str Str Assign NameStore TupleLoad Str Str Str Str Str Str Assign NameStore TupleLoad TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore TupleLoad TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Assign NameStore ListLoad TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A mock openstackclient.common exceptions openstackclient.common utils openstackclient.compute.v2 server_group openstackclient.tests.compute.v2 fakes compute_fakes openstackclient.tests utils tests_utils TestServerGroup N/A N/A compute_fakes TestComputev2 N/A N/A fake_server_group N/A N/A N/A compute_fakes FakeServerGroup create_one_server_group N/A columns N/A id members name policies project_id user_id N/A data N/A N/A fake_server_group id N/A N/A utils format_list N/A fake_server_group members N/A fake_server_group name N/A N/A utils format_list N/A fake_server_group policies N/A fake_server_group project_id N/A fake_server_group user_id setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestServerGroup self setUp N/A N/A self server_groups_mock N/A N/A N/A N/A self app client_manager compute server_groups N/A N/A N/A N/A self server_groups_mock reset_mock N/A N/A TestServerGroupCreate N/A TestServerGroup N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestServerGroupCreate self setUp N/A N/A N/A N/A self server_groups_mock create return_value N/A self fake_server_group N/A N/A self cmd N/A N/A server_group CreateServerGroup N/A self app None N/A test_server_group_create N/A N/A self N/A N/A N/A arglist N/A --policy affinity affinity_group N/A verifylist N/A N/A policy N/A affinity N/A name affinity_group N/A parsed_args N/A N/A self check_parser N/A self cmd arglist verifylist N/A N/A columns data N/A N/A N/A self cmd take_action parsed_args N/A N/A N/A N/A N/A self server_groups_mock create assert_called_once_with name N/A parsed_args name policies N/A parsed_args policy N/A N/A N/A self assertEqual N/A self columns columns N/A N/A N/A self assertEqual N/A self data data N/A test_server_group_create_with_multiple_policies N/A N/A self N/A N/A N/A arglist N/A --policy affinity --policy soft-affinity affinity_group N/A verifylist N/A N/A policy N/A affinity soft-affinity N/A name affinity_group N/A parsed_args N/A N/A self check_parser N/A self cmd arglist verifylist N/A N/A columns data N/A N/A N/A self cmd take_action parsed_args N/A N/A N/A N/A N/A self server_groups_mock create assert_called_once_with name N/A parsed_args name policies N/A parsed_args policy N/A N/A N/A self assertEqual N/A self columns columns N/A N/A N/A self assertEqual N/A self data data N/A test_server_group_create_no_policy N/A N/A self N/A N/A N/A arglist N/A affinity_group N/A verifylist None N/A N/A N/A self assertRaises N/A tests_utils ParserException N/A self check_parser N/A self cmd arglist verifylist N/A N/A TestServerGroupDelete N/A TestServerGroup N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestServerGroupDelete self setUp N/A N/A N/A N/A self server_groups_mock get return_value N/A self fake_server_group N/A N/A self cmd N/A N/A server_group DeleteServerGroup N/A self app None N/A test_server_group_delete N/A N/A self N/A N/A N/A arglist N/A affinity_group N/A verifylist N/A N/A server_group N/A affinity_group N/A parsed_args N/A N/A self check_parser N/A self cmd arglist verifylist N/A result N/A N/A N/A self cmd take_action parsed_args N/A N/A N/A N/A N/A self server_groups_mock get assert_called_once_with affinity_group N/A N/A N/A N/A N/A self server_groups_mock delete assert_called_once_with N/A N/A self fake_server_group id N/A N/A N/A self assertIsNone result N/A test_server_group_multiple_delete N/A N/A self N/A N/A N/A arglist N/A affinity_group anti_affinity_group N/A verifylist N/A N/A server_group N/A affinity_group anti_affinity_group N/A parsed_args N/A N/A self check_parser N/A self cmd arglist verifylist N/A result N/A N/A N/A self cmd take_action parsed_args N/A N/A N/A N/A N/A self server_groups_mock get assert_any_call affinity_group N/A N/A N/A N/A N/A self server_groups_mock get assert_any_call anti_affinity_group N/A N/A N/A N/A N/A self server_groups_mock delete assert_called_with N/A N/A self fake_server_group id N/A N/A N/A self assertEqual 2 N/A N/A N/A self server_groups_mock get call_count N/A N/A N/A self assertEqual 2 N/A N/A N/A self server_groups_mock delete call_count N/A N/A N/A self assertIsNone result N/A test_server_group_delete_no_input N/A N/A self N/A N/A N/A arglist N/A N/A verifylist None N/A N/A N/A self assertRaises N/A tests_utils ParserException N/A self check_parser N/A self cmd arglist verifylist N/A test_server_group_multiple_delete_with_exception N/A N/A self N/A N/A N/A arglist N/A affinity_group anti_affinity_group N/A verifylist N/A N/A server_group N/A affinity_group anti_affinity_group N/A parsed_args N/A N/A self check_parser N/A self cmd arglist verifylist N/A find_mock_result N/A N/A self fake_server_group N/A exceptions CommandError N/A N/A N/A N/A mock patch object utils find_resource side_effect find_mock_result find_mock N/A N/A N/A N/A N/A N/A N/A self cmd take_action parsed_args N/A N/A N/A self fail CommandError should be raised. N/A N/A N/A N/A exceptions CommandError N/A e N/A N/A N/A N/A self assertEqual 1 of 2 server groups failed to delete. N/A str e N/A N/A N/A find_mock assert_any_call N/A self server_groups_mock affinity_group N/A N/A N/A find_mock assert_any_call N/A self server_groups_mock anti_affinity_group N/A N/A N/A self assertEqual 2 N/A find_mock call_count N/A N/A N/A N/A N/A self server_groups_mock delete assert_called_once_with N/A N/A self fake_server_group id N/A N/A TestServerGroupList N/A TestServerGroup N/A N/A list_columns N/A ID Name Policies N/A list_columns_long N/A ID Name Policies Members Project Id User Id N/A list_data N/A N/A N/A N/A TestServerGroup fake_server_group id N/A N/A TestServerGroup fake_server_group name N/A N/A utils format_list N/A N/A TestServerGroup fake_server_group policies N/A list_data_long N/A N/A N/A N/A TestServerGroup fake_server_group id N/A N/A TestServerGroup fake_server_group name N/A N/A utils format_list N/A N/A TestServerGroup fake_server_group policies N/A N/A utils format_list N/A N/A TestServerGroup fake_server_group members N/A N/A TestServerGroup fake_server_group project_id N/A N/A TestServerGroup fake_server_group user_id setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestServerGroupList self setUp N/A N/A N/A N/A self server_groups_mock list return_value N/A N/A self fake_server_group N/A N/A self cmd N/A N/A server_group ListServerGroup N/A self app None N/A test_server_group_list N/A N/A self N/A N/A N/A arglist N/A N/A verifylist N/A N/A all_projects False N/A long False N/A parsed_args N/A N/A self check_parser N/A self cmd arglist verifylist N/A N/A columns data N/A N/A N/A self cmd take_action parsed_args N/A N/A N/A N/A N/A self server_groups_mock list assert_called_once_with False N/A N/A N/A self assertEqual N/A self list_columns columns N/A N/A N/A self assertEqual N/A self list_data N/A tuple data N/A test_server_group_list_with_all_projects_and_long N/A N/A self N/A N/A N/A arglist N/A --all-projects --long N/A verifylist N/A N/A all_projects True N/A long True N/A parsed_args N/A N/A self check_parser N/A self cmd arglist verifylist N/A N/A columns data N/A N/A N/A self cmd take_action parsed_args N/A N/A N/A N/A N/A self server_groups_mock list assert_called_once_with True N/A N/A N/A self assertEqual N/A self list_columns_long columns N/A N/A N/A self assertEqual N/A self list_data_long N/A tuple data N/A N/A TestServerGroupShow N/A TestServerGroup N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestServerGroupShow self setUp N/A N/A N/A N/A self server_groups_mock get return_value N/A self fake_server_group N/A N/A self cmd N/A N/A server_group ShowServerGroup N/A self app None N/A test_server_group_show N/A N/A self N/A N/A N/A arglist N/A affinity_group N/A verifylist N/A N/A server_group affinity_group N/A parsed_args N/A N/A self check_parser N/A self cmd arglist verifylist N/A N/A columns data N/A N/A N/A self cmd take_action parsed_args N/A N/A N/A self assertEqual N/A self columns columns N/A N/A N/A self assertEqual N/A self data data N/A N/A