Module Import alias Import alias Import alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str Str Str Str Str Str Assign NameStore Dict Str ListLoad Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Dict Str ListLoad Str Dict Str Str Str Str Str Str Str Dict Str Str Str Str Str Str Assign NameStore Dict Str Str Str Str NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad ListLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad ListLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad ListLoad 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 decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad ListLoad 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 decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad ListLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad ListLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad ListLoad 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 decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad ListLoad 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 decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Dict Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Dict Str ListLoad Str Dict Str Str Str Str Str Str Str Dict Str Str Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad ListLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Dict Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Dict Str ListLoad Str Dict Str Str Str Str Str Str Str Dict Str Str Str Str Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Dict Str Str Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad 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 NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad ListLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad ListLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr decorator_list
N/A N/A copy N/A mock N/A six openstack.cluster.v1 receiver sdk_receiver openstack exceptions sdk_exc openstackclient.common exceptions exc senlinclient.tests.unit.v1 fakes senlinclient.v1 receiver osc_receiver TestReceiver N/A N/A fakes TestClusteringv1 N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestReceiver self setUp N/A N/A self mock_client N/A N/A N/A self app client_manager clustering N/A N/A TestReceiverList N/A TestReceiver N/A N/A columns N/A id name type cluster_id action created_at N/A response N/A receivers N/A N/A action actor channel cluster_id created_at domain id name params project type updated_at user CLUSTER_SCALE_OUT N/A trust_id N/A 6dc6d336e3fc4c0a951b5698cd1236d9 N/A alarm_url http://node1:8778/v1/webhooks/e03dd2e5-8f2e-4ec1-8c6a-74ba891e5422/trigger?V=1&count=1 ae63a10b-4a90-452c-aef1-113a0b255ee3 2015-06-27T05:09:43 Default 573aa1ba-bf45-49fd-907d-6b5d6e6adfd3 cluster_inflate N/A count 1 6e18cc2bdbeb48a5b3cad2dc499f6804 webhook null b4ad2d6e18cc2b9c48049f6dbe8a5b3c N/A defaults N/A global_project marker limit sort False None None None setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestReceiverList self setUp N/A N/A self cmd N/A N/A osc_receiver ListReceiver N/A self app None N/A N/A N/A self mock_client receivers N/A N/A mock Mock return_value N/A self response N/A test_receiver_list_defaults N/A N/A self N/A N/A N/A arglist N/A N/A parsed_args N/A N/A self check_parser N/A self cmd arglist N/A 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 mock_client receivers assert_called_with N/A self defaults N/A N/A N/A self assertEqual N/A self columns columns N/A test_receiver_list_full_id N/A N/A self N/A N/A N/A arglist N/A --full-id N/A parsed_args N/A N/A self check_parser N/A self cmd arglist N/A 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 mock_client receivers assert_called_with N/A self defaults N/A N/A N/A self assertEqual N/A self columns columns N/A test_receiver_list_limit N/A N/A self N/A N/A N/A kwargs N/A N/A copy deepcopy N/A self defaults N/A N/A kwargs N/A limit 3 N/A arglist N/A --limit 3 N/A parsed_args N/A N/A self check_parser N/A self cmd arglist N/A 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 mock_client receivers assert_called_with kwargs N/A N/A N/A self assertEqual N/A self columns columns N/A test_receiver_list_sort N/A N/A self N/A N/A N/A kwargs N/A N/A copy deepcopy N/A self defaults N/A N/A kwargs N/A sort name:asc N/A arglist N/A --sort name:asc N/A parsed_args N/A N/A self check_parser N/A self cmd arglist N/A 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 mock_client receivers assert_called_with kwargs N/A N/A N/A self assertEqual N/A self columns columns N/A test_receiver_list_sort_invalid_key N/A N/A self N/A N/A N/A N/A N/A self mock_client receivers N/A N/A mock Mock return_value N/A self response N/A kwargs N/A N/A copy deepcopy N/A self defaults N/A N/A kwargs N/A sort bad_key N/A arglist N/A --sort bad_key N/A parsed_args N/A N/A self check_parser N/A self cmd arglist N/A N/A N/A N/A N/A self mock_client receivers side_effect N/A N/A sdk_exc HttpException N/A N/A N/A self assertRaises N/A sdk_exc HttpException N/A N/A self cmd take_action parsed_args N/A test_receiver_list_sort_invalid_direction N/A N/A self N/A N/A N/A N/A N/A self mock_client receivers N/A N/A mock Mock return_value N/A self response N/A kwargs N/A N/A copy deepcopy N/A self defaults N/A N/A kwargs N/A sort name:bad_direction N/A arglist N/A --sort name:bad_direction N/A parsed_args N/A N/A self check_parser N/A self cmd arglist N/A N/A N/A N/A N/A self mock_client receivers side_effect N/A N/A sdk_exc HttpException N/A N/A N/A self assertRaises N/A sdk_exc HttpException N/A N/A self cmd take_action parsed_args N/A test_receiver_list_filter N/A N/A self N/A N/A N/A kwargs N/A N/A copy deepcopy N/A self defaults N/A N/A kwargs N/A name my_receiver N/A arglist N/A --filter name=my_receiver N/A parsed_args N/A N/A self check_parser N/A self cmd arglist N/A 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 mock_client receivers assert_called_with kwargs N/A N/A N/A self assertEqual N/A self columns columns N/A test_receiver_list_marker N/A N/A self N/A N/A N/A kwargs N/A N/A copy deepcopy N/A self defaults N/A N/A kwargs N/A marker a9448bf6 N/A arglist N/A --marker a9448bf6 N/A parsed_args N/A N/A self check_parser N/A self cmd arglist N/A 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 mock_client receivers assert_called_with kwargs N/A N/A N/A self assertEqual N/A self columns columns N/A N/A TestReceiverShow N/A TestReceiver N/A N/A get_response N/A receiver N/A action actor channel cluster_id created_at domain id name params project type updated_at user CLUSTER_SCALE_OUT N/A trust_id N/A 6dc6d336e3fc4c0a951b5698cd1236d9 N/A alarm_url http://node1:8778/v1/webhooks/e03dd2e5-8f2e-4ec1-8c6a-74ba891e5422/trigger?V=1&count=1 ae63a10b-4a90-452c-aef1-113a0b255ee3 2015-06-27T05:09:43 Default 573aa1ba-bf45-49fd-907d-6b5d6e6adfd3 cluster_inflate N/A count 1 6e18cc2bdbeb48a5b3cad2dc499f6804 webhook null b4ad2d6e18cc2b9c48049f6dbe8a5b3c setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestReceiverShow self setUp N/A N/A self cmd N/A N/A osc_receiver ShowReceiver N/A self app None N/A N/A N/A self mock_client get_receiver N/A N/A mock Mock return_value N/A N/A sdk_receiver Receiver attrs N/A N/A self get_response N/A receiver N/A test_receiver_show N/A N/A self N/A N/A N/A arglist N/A my_receiver N/A parsed_args N/A N/A self check_parser N/A self cmd arglist N/A N/A N/A N/A N/A self cmd take_action parsed_args N/A N/A N/A N/A N/A self mock_client get_receiver assert_called_with my_receiver N/A test_receiver_show_not_found N/A N/A self N/A N/A N/A arglist N/A my_receiver N/A parsed_args N/A N/A self check_parser N/A self cmd arglist N/A N/A N/A N/A N/A self mock_client get_receiver side_effect N/A N/A sdk_exc ResourceNotFound N/A error N/A N/A self assertRaises N/A exc CommandError N/A N/A self cmd take_action parsed_args N/A N/A N/A self assertEqual Receiver not found: my_receiver N/A str error N/A N/A TestReceiverCreate N/A TestReceiver N/A N/A response N/A receiver N/A action actor channel cluster_id created_at domain id name params project type updated_at user CLUSTER_SCALE_OUT N/A trust_id N/A 6dc6d336e3fc4c0a951b5698cd1236d9 N/A alarm_url http://node1:8778/v1/webhooks/e03dd2e5-8f2e-4ec1-8c6a-74ba891e5422/trigger?V=1&count=1 ae63a10b-4a90-452c-aef1-113a0b255ee3 2015-06-27T05:09:43 Default 573aa1ba-bf45-49fd-907d-6b5d6e6adfd3 cluster_inflate N/A count 1 6e18cc2bdbeb48a5b3cad2dc499f6804 webhook null b4ad2d6e18cc2b9c48049f6dbe8a5b3c N/A args N/A action cluster_id name params type CLUSTER_SCALE_OUT my_cluster my_receiver N/A count 1 webhook setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestReceiverCreate self setUp N/A N/A self cmd N/A N/A osc_receiver CreateReceiver N/A self app None N/A N/A N/A self mock_client create_receiver N/A N/A mock Mock return_value N/A N/A sdk_receiver Receiver attrs N/A N/A self response N/A receiver N/A N/A N/A self mock_client get_receiver N/A N/A mock Mock return_value N/A N/A sdk_receiver Receiver attrs N/A N/A self response N/A receiver N/A test_receiver_create N/A N/A self N/A N/A N/A arglist N/A my_receiver --action CLUSTER_SCALE_OUT --cluster my_cluster --params count=1 --type webhook N/A parsed_args N/A N/A self check_parser N/A self cmd arglist N/A N/A N/A N/A N/A self cmd take_action parsed_args N/A N/A N/A N/A N/A self mock_client create_receiver assert_called_with N/A self args N/A N/A TestReceiverDelete N/A TestReceiver N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestReceiverDelete self setUp N/A N/A self cmd N/A N/A osc_receiver DeleteReceiver N/A self app None N/A N/A N/A self mock_client delete_receiver N/A N/A mock Mock N/A test_receiver_delete N/A N/A self N/A N/A N/A arglist N/A receiver1 receiver2 receiver3 N/A parsed_args N/A N/A self check_parser N/A self cmd arglist N/A N/A N/A N/A N/A self cmd take_action parsed_args N/A N/A N/A N/A N/A self mock_client delete_receiver assert_has_calls N/A N/A N/A mock call receiver1 False N/A N/A mock call receiver2 False N/A N/A mock call receiver3 False N/A test_receiver_delete_force N/A N/A self N/A N/A N/A arglist N/A receiver1 receiver2 receiver3 --force N/A parsed_args N/A N/A self check_parser N/A self cmd arglist N/A N/A N/A N/A N/A self cmd take_action parsed_args N/A N/A N/A N/A N/A self mock_client delete_receiver assert_has_calls N/A N/A N/A mock call receiver1 False N/A N/A mock call receiver2 False N/A N/A mock call receiver3 False N/A test_receiver_delete_not_found N/A N/A self N/A N/A N/A arglist N/A my_receiver N/A N/A N/A N/A self mock_client delete_receiver side_effect N/A sdk_exc ResourceNotFound N/A parsed_args N/A N/A self check_parser N/A self cmd arglist N/A N/A error N/A N/A self assertRaises N/A exc CommandError N/A N/A self cmd take_action parsed_args N/A N/A N/A self assertIn Failed to delete 1 of the 1 specified receiver(s). N/A str error N/A test_receiver_delete_one_found_one_not_found N/A N/A self N/A N/A N/A arglist N/A receiver1 receiver2 N/A N/A N/A N/A self mock_client delete_receiver side_effect N/A None N/A sdk_exc ResourceNotFound N/A parsed_args N/A N/A self check_parser N/A self cmd arglist N/A N/A error N/A N/A self assertRaises N/A exc CommandError N/A N/A self cmd take_action parsed_args N/A N/A N/A N/A N/A self mock_client delete_receiver assert_has_calls N/A N/A N/A mock call receiver1 False N/A N/A mock call receiver2 False N/A N/A N/A self assertEqual Failed to delete 1 of the 2 specified receiver(s). N/A str error N/A test_receiver_delete_prompt_yes N/A N/A self mock_stdin N/A N/A N/A arglist N/A my_receiver N/A N/A N/A mock_stdin isatty return_value True N/A N/A N/A mock_stdin readline return_value y N/A parsed_args N/A N/A self check_parser N/A self cmd arglist N/A N/A N/A N/A N/A self cmd take_action parsed_args N/A N/A N/A N/A mock_stdin readline assert_called_with N/A N/A N/A N/A N/A self mock_client delete_receiver assert_called_with my_receiver False N/A N/A N/A mock patch sys.stdin spec N/A six StringIO test_receiver_delete_prompt_no N/A N/A self mock_stdin N/A N/A N/A arglist N/A my_receiver N/A N/A N/A mock_stdin isatty return_value True N/A N/A N/A mock_stdin readline return_value n N/A parsed_args N/A N/A self check_parser N/A self cmd arglist N/A N/A N/A N/A N/A self cmd take_action parsed_args N/A N/A N/A N/A mock_stdin readline assert_called_with N/A N/A N/A N/A N/A self mock_client delete_receiver assert_not_called N/A N/A N/A mock patch sys.stdin spec N/A six StringIO N/A