Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Dict Str AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Str Dict Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str Str Str AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Dict Str AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Dict Str AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str Str Str AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Dict Str AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str Dict Str Str Str AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Dict Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Call NameLoad ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str ListLoad TupleLoad Str Num TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr Str decorator_list decorator_list
N/A N/A mock ec2api.tests.unit base ec2api.tests.unit fakes ec2api.tests.unit matchers ec2api.tests.unit tools CustomerGatewayTestCase N/A N/A base ApiTestCase N/A test_create_customer_gateway N/A N/A self N/A N/A N/A N/A N/A N/A self db_api add_item side_effect N/A N/A tools get_db_api_add_item N/A fakes ID_EC2_CUSTOMER_GATEWAY_2 N/A resp N/A N/A self execute CreateCustomerGateway N/A IpAddress Type N/A fakes IP_CUSTOMER_GATEWAY_ADDRESS_2 ipsec.1 N/A N/A N/A self assertEqual N/A customerGateway N/A fakes EC2_CUSTOMER_GATEWAY_2 resp N/A N/A N/A N/A N/A self db_api add_item assert_called_once_with N/A mock ANY cgw N/A ip_address N/A fakes IP_CUSTOMER_GATEWAY_ADDRESS_2 N/A resp N/A N/A self execute CreateCustomerGateway N/A IpAddress Type BgpAsn N/A fakes IP_CUSTOMER_GATEWAY_ADDRESS_2 ipsec.1 65000 N/A N/A N/A self assertEqual N/A customerGateway N/A fakes EC2_CUSTOMER_GATEWAY_2 resp N/A test_create_customer_gateway_idempotent N/A N/A self N/A N/A N/A N/A N/A self set_mock_db_items N/A fakes DB_CUSTOMER_GATEWAY_1 N/A resp N/A N/A self execute CreateCustomerGateway N/A IpAddress Type N/A fakes IP_CUSTOMER_GATEWAY_ADDRESS_1 ipsec.1 N/A N/A N/A self assertEqual N/A customerGateway N/A fakes EC2_CUSTOMER_GATEWAY_1 resp N/A N/A N/A self assertFalse N/A N/A N/A self db_api add_item called N/A resp N/A N/A self execute CreateCustomerGateway N/A IpAddress Type BgpAsn N/A fakes IP_CUSTOMER_GATEWAY_ADDRESS_1 ipsec.1 65000 N/A N/A N/A self assertEqual N/A customerGateway N/A fakes EC2_CUSTOMER_GATEWAY_1 resp N/A N/A N/A self assertFalse N/A N/A N/A self db_api add_item called N/A test_create_customer_gateway_invalid_parameters N/A N/A self N/A N/A N/A N/A N/A self assert_execution_error Unsupported CreateCustomerGateway N/A IpAddress Type BgpAsn N/A fakes IP_CUSTOMER_GATEWAY_ADDRESS_1 ipsec.1 456 N/A test_delete_customer_gateway N/A N/A self N/A N/A N/A N/A N/A self set_mock_db_items N/A fakes DB_CUSTOMER_GATEWAY_2 N/A resp N/A N/A self execute DeleteCustomerGateway N/A CustomerGatewayId N/A fakes ID_EC2_CUSTOMER_GATEWAY_2 N/A N/A N/A self assertEqual N/A return True resp N/A N/A N/A N/A N/A self db_api delete_item assert_called_once_with N/A mock ANY N/A fakes ID_EC2_CUSTOMER_GATEWAY_2 N/A test_delete_customer_gateway_invalid_parameters N/A N/A self N/A N/A N/A N/A N/A self set_mock_db_items N/A N/A N/A self assert_execution_error InvalidCustomerGatewayID.NotFound DeleteCustomerGateway N/A CustomerGatewayId N/A fakes ID_EC2_CUSTOMER_GATEWAY_2 N/A N/A N/A self assertFalse N/A N/A N/A self db_api delete_item called N/A N/A N/A self set_mock_db_items N/A fakes DB_CUSTOMER_GATEWAY_1 N/A fakes DB_VPN_CONNECTION_1 N/A N/A N/A self assert_execution_error IncorrectState DeleteCustomerGateway N/A CustomerGatewayId N/A fakes ID_EC2_CUSTOMER_GATEWAY_1 N/A N/A N/A self assertFalse N/A N/A N/A self db_api delete_item called N/A test_describe_customer_gateways N/A N/A self N/A N/A N/A N/A N/A self set_mock_db_items N/A fakes DB_CUSTOMER_GATEWAY_1 N/A fakes DB_CUSTOMER_GATEWAY_2 N/A resp N/A N/A self execute DescribeCustomerGateways N/A N/A N/A N/A self assertThat N/A resp N/A customerGatewaySet N/A N/A matchers ListMatches N/A N/A fakes EC2_CUSTOMER_GATEWAY_1 N/A fakes EC2_CUSTOMER_GATEWAY_2 N/A resp N/A N/A self execute DescribeCustomerGateways N/A CustomerGatewayId.1 N/A fakes ID_EC2_CUSTOMER_GATEWAY_2 N/A N/A N/A self assertThat N/A resp N/A customerGatewaySet N/A N/A matchers ListMatches N/A N/A fakes EC2_CUSTOMER_GATEWAY_2 N/A N/A N/A N/A N/A self db_api get_items_by_ids assert_called_once_with N/A mock ANY N/A set N/A N/A fakes ID_EC2_CUSTOMER_GATEWAY_2 N/A N/A N/A self check_filtering DescribeCustomerGateways customerGatewaySet N/A N/A bgp-asn 65000 N/A customer-gateway-id N/A fakes ID_EC2_CUSTOMER_GATEWAY_2 N/A ip-address N/A fakes IP_CUSTOMER_GATEWAY_ADDRESS_2 N/A state available N/A type ipsec.1 N/A N/A N/A self check_tag_support DescribeCustomerGateways customerGatewaySet N/A fakes ID_EC2_CUSTOMER_GATEWAY_2 customerGatewayId N/A N/A