<s> from mock import patch <EOL> import unittest <EOL> from networking_cisco . plugins . cisco . cpnr . cpnr_client import CpnrClient <EOL> class TestCpnrClient ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> super ( TestCpnrClient , self ) . setUp ( ) <EOL> self . mock_do_request = patch . object ( CpnrClient , '<STR_LIT>' ) . start ( ) <EOL> def test_buildurl ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> expected_url = ( '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> return_url = mock_client . _build_url ( '<STR_LIT:t>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> self . assertEqual ( expected_url , return_url ) <EOL> def test_get_dhcp_server ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . get_dhcp_server ( ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:GET>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def test_get_client_classes ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . get_client_classes ( ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:GET>' , <EOL> '<STR_LIT>' ) <EOL> def test_get_client_class ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . get_client_class ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:GET>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def test_get_vpns ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . get_vpns ( ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:GET>' , <EOL> '<STR_LIT>' ) <EOL> def test_get_scopes ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . get_scopes ( ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:GET>' , <EOL> '<STR_LIT>' ) <EOL> def test_get_scope ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . get_scope ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:GET>' , <EOL> '<STR_LIT>' ) <EOL> def test_get_client_entries ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . get_client_entries ( ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:GET>' , <EOL> '<STR_LIT>' ) <EOL> def test_get_client_entry ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . get_client_entry ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:GET>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def test_get_leases ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . get_leases ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:GET>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def test_get_dns_server ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . get_dns_server ( ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:GET>' , <EOL> '<STR_LIT>' ) <EOL> def test_get_dns_forwarders ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . get_dns_forwarders ( ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:GET>' , <EOL> '<STR_LIT>' ) <EOL> def test_get_dns_forwarder ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . get_dns_forwarder ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:GET>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def test_get_dns_views ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . get_dns_views ( ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:GET>' , <EOL> '<STR_LIT>' ) <EOL> def test_get_dns_view ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . get_dns_view ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:GET>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def test_get_ccm_zones ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . get_ccm_zones ( ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:GET>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def test_get_ccm_zone ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . get_ccm_zone ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:GET>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def test_get_ccm_reverse_zones ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . get_ccm_reverse_zones ( ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:GET>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def test_get_ccm_reverse_zone ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . get_ccm_reverse_zone ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:GET>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def test_get_ccm_hosts ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . get_ccm_hosts ( ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:GET>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def test_get_ccm_host ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . get_ccm_host ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:GET>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def test_create_scope ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . create_scope ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:POST>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_create_client_class ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . create_client_class ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:POST>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_create_vpn ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . create_vpn ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:POST>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_create_client_entry ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . create_client_entry ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:POST>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_create_dns_forwarder ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . create_dns_forwarder ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:POST>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_create_dns_view ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . create_dns_view ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:POST>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_create_ccm_zone ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . create_ccm_zone ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:POST>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_create_ccm_reverse_zone ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . create_ccm_reverse_zone ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:POST>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_create_ccm_host ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . create_ccm_host ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT:POST>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_update_dhcp_server ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . update_dhcp_server ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_update_client_class ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . update_client_class ( '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_update_vpn ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . update_vpn ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_update_scope ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . update_scope ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_update_client_entry ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . update_client_entry ( '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_update_dns_server ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . update_dns_server ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_update_dns_forwarder ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . update_dns_forwarder ( '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_update_dns_view ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . update_dns_view ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_update_ccm_zone ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . update_ccm_zone ( '<STR_LIT>' , '<STR_LIT>' , <EOL> None ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_update_ccm_reverse_zone ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . update_ccm_reverse_zone ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> None ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_update_ccm_host ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . update_ccm_host ( '<STR_LIT>' , '<STR_LIT>' , <EOL> None ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_delete_client_class ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . delete_client_class ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def test_delete_vpn ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . delete_vpn ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def test_delete_scope ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . delete_scope ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def test_delete_client_entry ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . delete_client_entry ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def test_delete_dns_forwarder ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . delete_dns_forwarder ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def test_delete_dns_view ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . delete_dns_view ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def test_delete_ccm_zone ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . delete_ccm_zone ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def test_delete_ccm_reverse_zone ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . delete_ccm_reverse_zone ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def test_delete_ccm_host ( self ) : <EOL> mock_client = CpnrClient ( '<STR_LIT:http>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , <NUM_LIT:0> ) <EOL> mock_client . delete_ccm_host ( '<STR_LIT>' ) <EOL> self . mock_do_request . assert_called_once_with ( '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) </s>
