<s> '''<STR_LIT>''' <EOL> from __future__ import absolute_import <EOL> from salttesting import TestCase , skipIf <EOL> from salttesting . mock import ( <EOL> patch , <EOL> NO_MOCK , <EOL> NO_MOCK_REASON <EOL> ) <EOL> from salttesting . helpers import ensure_in_syspath <EOL> ensure_in_syspath ( '<STR_LIT>' ) <EOL> from salt . modules import neutron <EOL> class MockNeutron ( object ) : <EOL> """<STR_LIT>""" <EOL> @ staticmethod <EOL> def get_quotas_tenant ( ) : <EOL> """<STR_LIT>""" <EOL> return True <EOL> @ staticmethod <EOL> def list_quotas ( ) : <EOL> """<STR_LIT>""" <EOL> return True <EOL> @ staticmethod <EOL> def show_quota ( tenant_id ) : <EOL> """<STR_LIT>""" <EOL> return tenant_id <EOL> @ staticmethod <EOL> def update_quota ( tenant_id , subnet , router , network , <EOL> floatingip , port , security_group , <EOL> security_group_rule ) : <EOL> """<STR_LIT>""" <EOL> return ( tenant_id , subnet , router , network , floatingip , port , <EOL> security_group , security_group_rule ) <EOL> @ staticmethod <EOL> def delete_quota ( tenant_id ) : <EOL> """<STR_LIT>""" <EOL> return tenant_id <EOL> @ staticmethod <EOL> def list_extensions ( ) : <EOL> """<STR_LIT>""" <EOL> return True <EOL> @ staticmethod <EOL> def list_ports ( ) : <EOL> """<STR_LIT>""" <EOL> return True <EOL> @ staticmethod <EOL> def show_port ( port ) : <EOL> """<STR_LIT>""" <EOL> return port <EOL> @ staticmethod <EOL> def create_port ( name , network , device_id , admin_state_up ) : <EOL> """<STR_LIT>""" <EOL> return ( name , network , device_id , admin_state_up ) <EOL> @ staticmethod <EOL> def update_port ( port , name , admin_state_up ) : <EOL> """<STR_LIT>""" <EOL> return ( port , name , admin_state_up ) <EOL> @ staticmethod <EOL> def delete_port ( port ) : <EOL> """<STR_LIT>""" <EOL> return port <EOL> @ staticmethod <EOL> def list_networks ( ) : <EOL> """<STR_LIT>""" <EOL> return True <EOL> @ staticmethod <EOL> def show_network ( network ) : <EOL> """<STR_LIT>""" <EOL> return network <EOL> @ staticmethod <EOL> def create_network ( name , admin_state_up , router_ext , network_type , physical_network , segmentation_id , shared ) : <EOL> """<STR_LIT>""" <EOL> return ( name , admin_state_up , router_ext , network_type , physical_network , segmentation_id , shared ) <EOL> @ staticmethod <EOL> def update_network ( network , name ) : <EOL> """<STR_LIT>""" <EOL> return ( network , name ) <EOL> @ staticmethod <EOL> def delete_network ( network ) : <EOL> """<STR_LIT>""" <EOL> return network <EOL> @ staticmethod <EOL> def list_subnets ( ) : <EOL> """<STR_LIT>""" <EOL> return True <EOL> @ staticmethod <EOL> def show_subnet ( subnet ) : <EOL> """<STR_LIT>""" <EOL> return subnet <EOL> @ staticmethod <EOL> def create_subnet ( network , cidr , name , ip_version ) : <EOL> """<STR_LIT>""" <EOL> return ( network , cidr , name , ip_version ) <EOL> @ staticmethod <EOL> def update_subnet ( subnet , name ) : <EOL> """<STR_LIT>""" <EOL> return ( subnet , name ) <EOL> @ staticmethod <EOL> def delete_subnet ( subnet ) : <EOL> """<STR_LIT>""" <EOL> return subnet <EOL> @ staticmethod <EOL> def list_routers ( ) : <EOL> """<STR_LIT>""" <EOL> return True <EOL> @ staticmethod <EOL> def show_router ( router ) : <EOL> """<STR_LIT>""" <EOL> return router <EOL> @ staticmethod <EOL> def create_router ( name , ext_network , admin_state_up ) : <EOL> """<STR_LIT>""" <EOL> return ( name , ext_network , admin_state_up ) <EOL> @ staticmethod <EOL> def update_router ( router , name , admin_state_up , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> return ( router , name , admin_state_up , kwargs ) <EOL> @ staticmethod <EOL> def delete_router ( router ) : <EOL> """<STR_LIT>""" <EOL> return router <EOL> @ staticmethod <EOL> def add_interface_router ( router , subnet ) : <EOL> """<STR_LIT>""" <EOL> return ( router , subnet ) <EOL> @ staticmethod <EOL> def remove_interface_router ( router , subnet ) : <EOL> """<STR_LIT>""" <EOL> return ( router , subnet ) <EOL> @ staticmethod <EOL> def add_gateway_router ( router , ext_network ) : <EOL> """<STR_LIT>""" <EOL> return ( router , ext_network ) <EOL> @ staticmethod <EOL> def remove_gateway_router ( router ) : <EOL> """<STR_LIT>""" <EOL> return router <EOL> @ staticmethod <EOL> def list_floatingips ( ) : <EOL> """<STR_LIT>""" <EOL> return True <EOL> @ staticmethod <EOL> def show_floatingip ( floatingip_id ) : <EOL> """<STR_LIT>""" <EOL> return floatingip_id <EOL> @ staticmethod <EOL> def create_floatingip ( floating_network , port ) : <EOL> """<STR_LIT>""" <EOL> return ( floating_network , port ) <EOL> @ staticmethod <EOL> def update_floatingip ( floating_network , port ) : <EOL> """<STR_LIT>""" <EOL> return ( floating_network , port ) <EOL> @ staticmethod <EOL> def delete_floatingip ( floatingip_id ) : <EOL> """<STR_LIT>""" <EOL> return floatingip_id <EOL> @ staticmethod <EOL> def list_security_groups ( ) : <EOL> """<STR_LIT>""" <EOL> return True <EOL> @ staticmethod <EOL> def show_security_group ( security_group ) : <EOL> """<STR_LIT>""" <EOL> return security_group <EOL> @ staticmethod <EOL> def create_security_group ( name , description ) : <EOL> """<STR_LIT>""" <EOL> return ( name , description ) <EOL> @ staticmethod <EOL> def update_security_group ( security_group , name , description ) : <EOL> """<STR_LIT>""" <EOL> return ( security_group , name , description ) <EOL> @ staticmethod <EOL> def delete_security_group ( security_group ) : <EOL> """<STR_LIT>""" <EOL> return security_group <EOL> @ staticmethod <EOL> def list_security_group_rules ( ) : <EOL> """<STR_LIT>""" <EOL> return True <EOL> @ staticmethod <EOL> def show_security_group_rule ( security_group_rule_id ) : <EOL> """<STR_LIT>""" <EOL> return security_group_rule_id <EOL> @ staticmethod <EOL> def create_security_group_rule ( security_group , <EOL> remote_group_id , <EOL> direction , <EOL> protocol , <EOL> port_range_min , <EOL> port_range_max , <EOL> ethertype ) : <EOL> """<STR_LIT>""" <EOL> return ( security_group , remote_group_id , direction , protocol , <EOL> port_range_min , port_range_max , ethertype ) <EOL> @ staticmethod <EOL> def delete_security_group_rule ( security_group_rule_id ) : <EOL> """<STR_LIT>""" <EOL> return security_group_rule_id <EOL> @ staticmethod <EOL> def list_vpnservices ( retrieve_all , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> return ( retrieve_all , kwargs ) <EOL> @ staticmethod <EOL> def show_vpnservice ( vpnservice , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> return ( vpnservice , kwargs ) <EOL> @ staticmethod <EOL> def create_vpnservice ( subnet , router , name , admin_state_up ) : <EOL> """<STR_LIT>""" <EOL> return ( subnet , router , name , admin_state_up ) <EOL> @ staticmethod <EOL> def update_vpnservice ( vpnservice , desc ) : <EOL> """<STR_LIT>""" <EOL> return ( vpnservice , desc ) <EOL> @ staticmethod <EOL> def delete_vpnservice ( vpnservice ) : <EOL> """<STR_LIT>""" <EOL> return vpnservice <EOL> @ staticmethod <EOL> def list_ipsec_site_connections ( ) : <EOL> """<STR_LIT>""" <EOL> return True <EOL> @ staticmethod <EOL> def show_ipsec_site_connection ( ipsec_site_connection ) : <EOL> """<STR_LIT>""" <EOL> return ipsec_site_connection <EOL> @ staticmethod <EOL> def create_ipsec_site_connection ( name , <EOL> ipsecpolicy , <EOL> ikepolicy , <EOL> vpnservice , <EOL> peer_cidrs , <EOL> peer_address , <EOL> peer_id , <EOL> psk , <EOL> admin_state_up , <EOL> ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> return ( name , ipsecpolicy , ikepolicy , vpnservice , peer_cidrs , <EOL> peer_address , peer_id , psk , admin_state_up , kwargs ) <EOL> @ staticmethod <EOL> def delete_ipsec_site_connection ( ipsec_site_connection ) : <EOL> """<STR_LIT>""" <EOL> return ipsec_site_connection <EOL> @ staticmethod <EOL> def list_ikepolicies ( ) : <EOL> """<STR_LIT>""" <EOL> return True <EOL> @ staticmethod <EOL> def show_ikepolicy ( ikepolicy ) : <EOL> """<STR_LIT>""" <EOL> return ikepolicy <EOL> @ staticmethod <EOL> def create_ikepolicy ( name , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> return ( name , kwargs ) <EOL> @ staticmethod <EOL> def delete_ikepolicy ( ikepolicy ) : <EOL> """<STR_LIT>""" <EOL> return ikepolicy <EOL> @ staticmethod <EOL> def list_ipsecpolicies ( ) : <EOL> """<STR_LIT>""" <EOL> return True <EOL> @ staticmethod <EOL> def show_ipsecpolicy ( ipsecpolicy ) : <EOL> """<STR_LIT>""" <EOL> return ipsecpolicy <EOL> @ staticmethod <EOL> def create_ipsecpolicy ( name , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> return ( name , kwargs ) <EOL> @ staticmethod <EOL> def delete_ipsecpolicy ( ipsecpolicy ) : <EOL> """<STR_LIT>""" <EOL> return ipsecpolicy <EOL> @ skipIf ( NO_MOCK , NO_MOCK_REASON ) <EOL> @ patch ( '<STR_LIT>' , return_value = MockNeutron ( ) ) <EOL> class NeutronTestCase ( TestCase ) : <EOL> '''<STR_LIT>''' <EOL> def test_get_quotas_tenant ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . get_quotas_tenant ( profile = '<STR_LIT>' ) ) <EOL> def test_list_quotas ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . list_quotas ( profile = '<STR_LIT>' ) ) <EOL> def test_show_quota ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . show_quota ( '<STR_LIT>' , profile = '<STR_LIT>' ) ) <EOL> def test_update_quota ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . update_quota ( '<STR_LIT>' , subnet = '<STR_LIT>' , <EOL> router = '<STR_LIT>' , network = '<STR_LIT>' , <EOL> floatingip = '<STR_LIT>' , port = '<STR_LIT>' , <EOL> security_group = '<STR_LIT>' , <EOL> security_group_rule = '<STR_LIT>' ) ) <EOL> def test_delete_quota ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . delete_quota ( '<STR_LIT>' , profile = '<STR_LIT>' ) ) <EOL> def test_list_extensions ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . list_extensions ( profile = '<STR_LIT>' ) ) <EOL> def test_list_ports ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . list_ports ( profile = '<STR_LIT>' ) ) <EOL> def test_show_port ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . show_port ( '<STR_LIT>' , profile = '<STR_LIT>' ) ) <EOL> def test_create_port ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . create_port ( '<STR_LIT>' , '<STR_LIT>' , <EOL> device_id = '<STR_LIT>' , <EOL> admin_state_up = True , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_update_port ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . update_port ( '<STR_LIT>' , '<STR_LIT>' , <EOL> admin_state_up = True , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_delete_port ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . delete_port ( '<STR_LIT>' , profile = '<STR_LIT>' ) ) <EOL> def test_list_networks ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . list_networks ( profile = '<STR_LIT>' ) ) <EOL> def test_show_network ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . show_network ( '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_create_network ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . create_network ( '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_update_network ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . update_network ( '<STR_LIT>' , '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_delete_network ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . delete_network ( '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_list_subnets ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . list_subnets ( profile = '<STR_LIT>' ) ) <EOL> def test_show_subnet ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . show_subnet ( '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_create_subnet ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . create_subnet ( '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> name = '<STR_LIT>' , <EOL> ip_version = <NUM_LIT:4> , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_update_subnet ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . update_subnet ( '<STR_LIT>' , <EOL> name = '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_delete_subnet ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . delete_subnet ( '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_list_routers ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . list_routers ( profile = '<STR_LIT>' ) ) <EOL> def test_show_router ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . show_router ( '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_create_router ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . create_router ( '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> admin_state_up = True , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_update_router ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . update_router ( '<STR_LIT>' , <EOL> name = '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_delete_router ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . delete_router ( '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_add_interface_router ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . add_interface_router ( '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_remove_interface_router ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . remove_interface_router <EOL> ( '<STR_LIT>' , '<STR_LIT>' , profile = '<STR_LIT>' ) ) <EOL> def test_add_gateway_router ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . add_gateway_router <EOL> ( '<STR_LIT>' , '<STR_LIT>' , profile = '<STR_LIT>' ) ) <EOL> def test_remove_gateway_router ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . remove_gateway_router ( '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_list_floatingips ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . list_floatingips ( profile = '<STR_LIT>' ) ) <EOL> def test_show_floatingip ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . show_floatingip ( '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_create_floatingip ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . create_floatingip ( '<STR_LIT>' , port = '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_update_floatingip ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . update_floatingip ( '<STR_LIT>' , port = '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_delete_floatingip ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . delete_floatingip ( '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_list_security_groups ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . list_security_groups ( profile = '<STR_LIT>' ) ) <EOL> def test_show_security_group ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . show_security_group ( '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_create_security_group ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . create_security_group ( '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_update_security_group ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . update_security_group ( '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_delete_security_group ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . delete_security_group ( '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_list_security_group_rules ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . list_security_group_rules <EOL> ( profile = '<STR_LIT>' ) ) <EOL> def test_show_security_group_rule ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . show_security_group_rule <EOL> ( '<STR_LIT>' , profile = '<STR_LIT>' ) ) <EOL> def test_create_security_group_rule ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . create_security_group_rule <EOL> ( '<STR_LIT>' , profile = '<STR_LIT>' ) ) <EOL> def test_delete_security_group_rule ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . delete_security_group_rule <EOL> ( '<STR_LIT>' , profile = '<STR_LIT>' ) ) <EOL> def test_list_vpnservices ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . list_vpnservices ( True , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_show_vpnservice ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . show_vpnservice ( '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_create_vpnservice ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . create_vpnservice ( '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , True , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_update_vpnservice ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . update_vpnservice ( '<STR_LIT>' , '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_delete_vpnservice ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . delete_vpnservice ( '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_list_ipsec_site ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . list_ipsec_site_connections <EOL> ( profile = '<STR_LIT>' ) ) <EOL> def test_show_ipsec_site_connection ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . show_ipsec_site_connection <EOL> ( '<STR_LIT>' , profile = '<STR_LIT>' ) ) <EOL> def test_create_ipsec_site ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . create_ipsec_site_connection <EOL> ( '<STR_LIT>' , '<STR_LIT:A>' , '<STR_LIT:B>' , '<STR_LIT:C>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_delete_ipsec_site ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . delete_ipsec_site_connection <EOL> ( '<STR_LIT>' , profile = '<STR_LIT>' ) ) <EOL> def test_list_ikepolicies ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . list_ikepolicies ( profile = '<STR_LIT>' ) ) <EOL> def test_show_ikepolicy ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . show_ikepolicy ( '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_create_ikepolicy ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . create_ikepolicy ( '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_delete_ikepolicy ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . delete_ikepolicy ( '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_list_ipsecpolicies ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . list_ipsecpolicies ( profile = '<STR_LIT>' ) ) <EOL> def test_show_ipsecpolicy ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . show_ipsecpolicy ( '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_create_ipsecpolicy ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . create_ipsecpolicy ( '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> def test_delete_ipsecpolicy ( self , mock ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( neutron . delete_ipsecpolicy ( '<STR_LIT>' , <EOL> profile = '<STR_LIT>' ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> from integration import run_tests <EOL> run_tests ( NeutronTestCase , needs_daemon = False ) </s>
