/usr/lib/python2.6/site-packages/openstackclient/tests/network/v2
NameSizeModeActions
fakes.py12250644editdlrm
fakes.pyc12490644editdlrm
test_floating_ip.py137030644editdlrm
test_floating_ip.pyc140990644editdlrm
test_network.py152900644editdlrm
test_network.pyc135590644editdlrm
test_port.py131570644editdlrm
test_port.pyc134380644editdlrm
test_router.py191390644editdlrm
test_router.pyc198110644editdlrm
test_security_group.py211830644editdlrm
test_security_group.pyc207460644editdlrm
test_security_group_rule.py318820644editdlrm
test_security_group_rule.pyc263960644editdlrm
test_subnet.py221850644editdlrm
test_subnet.pyc171570644editdlrm
test_subnet_pool.py174730644editdlrm
test_subnet_pool.pyc162240644editdlrm
__init__.py00644editdlrm
__init__.pyc1760644editdlrm
Edit: /usr/lib/python2.6/site-packages/openstackclient/tests/network/v2/test_port.pyc (13438B)
Ñò þWc@s×ddkZddklZddklZddklZddklZ dei fd„ƒYZ de fd„ƒYZ d e fd „ƒYZ d e fd „ƒYZd e fd„ƒYZde fd„ƒYZdS(iÿÿÿÿN(tutils(tport(tfakestTestPortcBseZd„Zd„ZRS(cCs)tt|ƒiƒ|iii|_dS(N(tsuperRtsetUptapptclient_managertnetwork(tself((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyRscCsÜd}ti|iƒti|iƒ|iti|iƒti|i ƒ|i |i |i |i ti|iƒ|iti|iƒti|iƒ|i|i|i|i|i|iti|iƒ|if}||fS(Ntadmin_state_uptallowed_address_pairstbinding_host_idtbinding_profiletbinding_vif_detailstbinding_vif_typetbinding_vnic_typet device_idt device_ownertdns_assignmenttdns_nametextra_dhcp_optst fixed_ipstidt mac_addresstnamet network_idtport_security_enabledt project_idtsecurity_groupststatus(sadmin_state_upsallowed_address_pairssbinding_host_idsbinding_profilesbinding_vif_detailssbinding_vif_typesbinding_vnic_types device_ids device_ownersdns_assignmentsdns_namesextra_dhcp_optss fixed_ipssids mac_addresssnames network_idsport_security_enableds project_idssecurity_groupssstatus(Rt_format_admin_stateR Rtformat_list_of_dictsR R t format_dictR RRRRRRRRRRRRRRRt format_listRR(R t fake_porttcolumnstdata((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyt_get_common_cols_datasV (t__name__t __module__RR&(((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyRs tTestCreatePortcBs2eZeiiƒZd„Zd„Zd„ZRS(cCs±tt|ƒiƒtid|iƒ|i_ti i h|ii d6ƒ}tid|ƒ|i_ ti iƒ|_tid|iƒ|i_ti|i|iƒ|_dS(Nt return_valueR(RR)RtmocktMockt_portRt create_portt network_fakest FakeNetworktcreate_one_networkRt find_networkt FakeSubnettcreate_one_subnett fake_subnett find_subnetRt CreatePortRt namespacetcmd(R tfake_net((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyRVs cCsÐd|iidg}d|iifdtfdg}|i|i||ƒ}|ii|ƒ\}}|iiihtd6|iid6dd6|i |iƒ\}}|i ||ƒ|i ||ƒdS( Ns --networks test-portRtenableRR R(snames test-port( R-RtTruet check_parserR9t take_actionRR.tassert_called_once_withR&t assertEqual(R targlistt verifylistt parsed_argsR$R%t ref_columnstref_data((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyttest_create_default_optionscs      cCs™dddd|iiddddd d d d d d dd|iidg}d)dh|iid6dd6gfd*d+dtfd,dhdd6dd6fd|iifd-g }|i|i||ƒ}|ii|ƒ\}}|ii i h dd6h|iid!6dd"6gd#6dd$6dd6t d%6d d&6hdd6dd6d'6|iid(6dd 6|i |iƒ\}}|i ||ƒ|i ||ƒdS(.Ns --mac-addresssaa:aa:aa:aa:aa:aas --fixed-ipssubnet=%s,ip-address=10.0.0.2s--devicetdeviceids--device-ownert fakeowners --disables --vnic-typetmacvtaps--binding-profilesfoo=bars foo2=bar2s --networks test-portRtfixed_iptsubnets10.0.0.2s ip-addresstdeviceRtdisablet vnic_typeR tbartfootbar2tfoo2RRt subnet_idt ip_addressRRR sbinding:vnic_typesbinding:profileR(s mac_addresssaa:aa:aa:aa:aa:aa(RLRG(s device_ownerRH(RNRI(snames test-port(R5RR-RR<R=R9R>RR.R?tFalseR&R@(R RARBRCR$R%RDRE((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyttest_create_full_options{sJ       ( R'R(R/tFakePorttcreate_one_portR-RRFRV(((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyR)Rs tTestDeletePortcBs)eZeiiƒZd„Zd„ZRS(cCsett|ƒiƒtiddƒ|i_tid|iƒ|i_ t i |i |i ƒ|_dS(NR*(RRYRR+R,tNoneRt delete_portR-t find_portRt DeletePortRR8R9(R ((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyR´scCsx|iig}d|iigfg}|i|i||ƒ}|ii|ƒ}|iii|iƒ|i|ƒdS(NR( R-RR=R9R>RR[R?t assertIsNone(R RARBRCtresult((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyt test_delete¼s (R'R(R/RWRXR-RR`(((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyRY¯s t TestListPortcBsƒeZeiiddƒZd ZgZx<eD]4Zei ei ei ei e ieiƒfƒq.Wd„Zd„Zd„ZRS( tcountitIDtNames MAC AddresssFixed IP AddressescCs~tt|ƒiƒti|i|iƒ|_ti d|i ƒ|i _ t iihdd6ƒ}ti d|ƒ|i _dS(NR*sfake-router-idR(RRaRRtListPortRR8R9R+R,t_portsRtportsR/t FakeRoutertcreate_one_routert find_router(R t fake_router((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyRÞs   cCs|g}g}|i|i||ƒ}|ii|ƒ\}}|iiiƒ|i|i|ƒ|i|it |ƒƒdS(N( R=R9R>RRgR?R@R$R%tlist(R RARBRCR$R%((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyttest_port_list_no_optionséscCsddg}dg}|i|i||ƒ}|ii|ƒ\}}|iiihdd6|i|i|ƒ|i|it |ƒƒdS(Ns--routersfake-router-nametroutersfake-router-idR(Rnsfake-router-name( R=R9R>RRgR?R@R$R%Rl(R RARBRCR$R%((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyttest_port_list_router_optõs   (RcsNames MAC AddresssFixed IP Addresses(R'R(R/RWt create_portsRfR$R%tprttappendRRRRR RRRmRo(((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyRaÊs  t TestSetPortcBsDeZeiiƒZd„Zd„Zd„Zd„Z d„Z RS(cCs’tt|ƒiƒtiiƒ|_tid|iƒ|i _ tid|i ƒ|i _ tiddƒ|i _ti|i|iƒ|_dS(NR*(RRsRR/R3R4R5R+R,RR6R-R\RZt update_portRtSetPortRR8R9(R ((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyR s cCs™dd|iig}dhdd6gfg}|i|i||ƒ}|ii|ƒ}hhdd6gd6}|iii|i||i|ƒdS(Ns --fixed-ipsip-address=10.0.0.11RJs 10.0.0.11s ip-addressRTR( R-RR=R9R>RRtR?R^(R RARBRCR_tattrs((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyttest_set_fixed_ipscCsØtiihhdd6gd6ƒ}tid|ƒ|i_dd|ig}dhdd 6gfg}|i|i ||ƒ}|i i |ƒ}hhdd6hdd6gd6}|ii i |||i |ƒdS( Ns0.0.0.1RTRR*s --fixed-ipsip-address=10.0.0.12RJs 10.0.0.12s ip-address(R/RWRXR+R,RR\RR=R9R>RtR?R^(R t _testportRARBRCR_Rv((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyttest_append_fixed_ip)s  cCs¨ddd|iig}dtfdtfdtfg}|i|i||ƒ}|ii|ƒ}htd6hd6gd 6}|iii |i||i |ƒdS( Ns --disables --no-fixed-ips--no-binding-profileRMtno_binding_profilet no_fixed_ipR sbinding:profileR( R-RR<R=R9R>RURRtR?R^(R RARBRCR_Rv((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyt test_set_this=s   c CsÖddddddddd |iig }d tfdd hd d6fddg}|i|i||ƒ}|ii|ƒ}htd6dd6hd d6d6dd6d d6}|iii|i||i |ƒdS(Ns--enables --vnic-typeRIs--binding-profilesfoo=bars--hostsbinding-host-id-xxxxs--nametnewNameR;RNR RORPthostRR sbinding:vnic_typesbinding:profilesbinding:host_id(s vnic_typesmacvtap(shostsbinding-host-id-xxxx(snameR}( R-RR<R=R9R>RRtR?R^(R RARBRCR_Rv((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyt test_set_thatUs*   ( R'R(R/RWRXR-RRwRyR|R(((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyRs s    t TestShowPortcBs2eZeiiƒZd„Zd„Zd„ZRS(cCsMtt|ƒiƒtid|iƒ|i_ti |i |i ƒ|_ dS(NR*( RR€RR+R,R-RR\RtShowPortRR8R9(R ((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyRyscCs2g}g}|iti|i|i||ƒdS(N(t assertRaisest tests_utilstParserExceptionR=R9(R RARB((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyttest_show_no_optionss cCs¯|iig}d|iifg}|i|i||ƒ}|ii|ƒ\}}|iii|iidtƒ|i |iƒ\}}|i ||ƒ|i ||ƒdS(NRtignore_missing( R-RR=R9R>RR\R?RUR&R@(R RARBRCR$R%RDRE((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyttest_show_all_optionsˆs ( R'R(R/RWRXR-RR…R‡(((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyR€ts  (R+topenstackclient.commonRtopenstackclient.network.v2Rt openstackclient.tests.network.v2RR/topenstackclient.testsRƒt TestNetworkV2RR)RYRaRsR€(((sZ/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_port.pyts <]?k