/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_subnet_pool.pyc (16224B)
Ñò þWc @sddkZddkZddkZddklZddklZddklZddkl Z ddk l Z ddk l Z ddklZde ifd„ƒYZdefd „ƒYZd efd „ƒYZd efd „ƒYZdefd„ƒYZdefd„ƒYZdS(iÿÿÿÿN(t exceptions(tutils(t subnet_pool(tfakestTestSubnetPoolcBseZd„ZRS(cCs)tt|ƒiƒ|iii|_dS(N(tsuperRtsetUptapptclient_managertnetwork(tself((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyRs(t__name__t __module__R(((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyRstTestCreateSubnetPoolc BsÂeZeiiƒZeiiƒZdZ ei ei ei ei eieieieieieieiƒeieif Zd „Zd „Zd„Zd„Zd„Zd„Zd„ZRS(taddress_scope_idtdefault_prefixlent default_quotatidt ip_versiont is_defaultt max_prefixlent min_prefixlentnametprefixest project_idtsharedcCstt|ƒiƒtid|iƒ|i_ti |i |i ƒ|_ tid|i ƒ|i_tidtidtiƒ}||i i_|i ii|_|ii|_tidtitiƒdtƒ|ii_|ii |_!tidtiti"ƒdtƒ|i!i_dS(Nt return_valuetendpointttokentloaded(#RR RtmocktMockt _subnet_poolR tcreate_subnet_poolRtCreateSubnetPoolRt namespacetcmdt_address_scopetfind_address_scopetidentity_fakes_v3tFakeIdentityv3ClientRtAUTH_URLt AUTH_TOKENRtidentitytprojectst projects_mockt FakeResourcetNonetcopytdeepcopytPROJECTtTruetgetRtdomainst domains_mocktDOMAIN(R tidentity_client((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyRHs*     cCs2g}g}|iti|i|i||ƒdS(N(t assertRaisest tests_utilstParserExceptiont check_parserR$(R targlistt verifylist((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyttest_create_no_optionslscCsºdd|iig}ddgfd|iifg}|i|i||ƒ}|ii|ƒ\}}|iiihdgd6|iid6|i|i |ƒ|i|i |ƒdS(Ns --pool-prefixs 10.0.10.0/24RR( R RR<R$t take_actionR R!tassert_called_once_witht assertEqualtcolumnstdata(R R=R>t parsed_argsRCRD((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyttest_create_default_optionsts  cCsd|iid|iid|ii|iig}d|iifd|iifd|iifd|iifg}|i|i||ƒ}|ii|ƒ\}}|ii i h|iid6|iid 6|iid 6gd 6|iid6|i |i |ƒ|i |i |ƒdS( Ns--default-prefix-lengths--max-prefix-lengths--min-prefix-lengthtdefault_prefix_lengthtmax_prefix_lengthtmin_prefix_lengthRRRRR(R RRRRR<R$R@R R!RARBRCRD(R R=R>RERCRD((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyttest_create_prefixlen_optionsˆs$      cCsS|iiddg}d|iifdg}|iti|i|i||ƒdS(Ns--min-prefix-lengths-16RRI(smin_prefix_lengths-16(R RR9targparsetArgumentTypeErrorR<R$(R R=R>((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyttest_create_len_negative£s    cCsîdddtidti|iig}ddgfdtifdtifd|iifg}|i|i||ƒ}|ii|ƒ\}}|ii i hdgd6ti d 6|iid6|i |i |ƒ|i |i|ƒdS( Ns --pool-prefixs 10.0.10.0/24s --projects--project-domainRtprojecttproject_domainRt tenant_id(R't project_namet domain_nameR RR<R$R@R R!RARRBRCRD(R R=R>RERCRD((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyttest_create_project_domain°s        cCsâddd|ii|iig}ddgfd|iifd|iifg}|i|i||ƒ}|ii|ƒ\}}|iii hdgd6|iid6|iid6|i |i |ƒ|i |i |ƒdS(Ns --pool-prefixs 10.0.10.0/24s--address-scopeRt address_scopeRR( R%RR RR<R$R@R R!RARBRCRD(R R=R>RERCRD((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyt test_create_address_scope_optionÉs    ( saddress_scope_idsdefault_prefixlens default_quotasids ip_versions is_defaults max_prefixlens min_prefixlensnamesprefixess project_idsshared( R R t network_fakestFakeSubnetPooltcreate_one_subnet_poolR tFakeAddressScopetcreate_one_address_scopeR%RCRRRRRRRRRRt format_listRRRRDRR?RFRJRMRSRU(((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyR $sB  $    tTestDeleteSubnetPoolcBs)eZeiiƒZd„Zd„ZRS(cCsett|ƒiƒtiddƒ|i_tid|iƒ|i_ t i |i |i ƒ|_dS(NR(RR\RRRR/R tdelete_subnet_poolR tfind_subnet_poolRtDeleteSubnetPoolRR#R$(R ((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyRæs  cCsu|iig}d|iifg}|i|i||ƒ}|ii|ƒ}|iii|iƒ|i|ƒdS(NR( R RR<R$R@R R]RAt assertIsNone(R R=R>REtresult((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyt test_deleteòs  (R R RVRWRXR RRb(((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyR\ás tTestListSubnetPoolc BsÒeZeiiddƒZd Zed ZgZx6eD].Z ei e i e i e ie iƒfƒq8WgZxBeD]:Z ei e i e i e ie iƒe ie ifƒqwWd„Zd„Zd „ZRS( tcountitIDtNametPrefixessDefault Prefix Lengths Address ScopecCsMtt|ƒiƒti|i|iƒ|_ti d|i ƒ|i _ dS(NR( RRcRRtListSubnetPoolRR#R$RRt _subnet_poolsR t subnet_pools(R ((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyR"scCs…g}dtfg}|i|i||ƒ}|ii|ƒ\}}|iiiƒ|i|i|ƒ|i|i t |ƒƒdS(Ntlong( tFalseR<R$R@R RjRARBRCRDtlist(R R=R>RERCRD((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyttest_subnet_pool_list_no_option*scCsˆdg}dtfg}|i|i||ƒ}|ii|ƒ\}}|iiiƒ|i|i|ƒ|i|i t |ƒƒdS(Ns--longRk( R3R<R$R@R RjRARBt columns_longt data_longRm(R R=R>RERCRD((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyttest_subnet_pool_list_long7s (ResNameRg(sDefault Prefix Lengths Address Scope(R R RVRWtcreate_subnet_poolsRiRCRoRDtpooltappendRRRR[RRpRRRRnRq(((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyRcs4  tTestSetSubnetPoolcBsneZeiiƒZeiiƒZd„Z d„Z d„Z d„Z d„Z d„Zd„Zd„ZRS(cCs€tt|ƒiƒtiddƒ|i_tid|iƒ|i_ tid|i ƒ|i_ t i |i|iƒ|_dS(NR(RRuRRRR/R tupdate_subnet_poolR R^R%R&Rt SetSubnetPoolRR#R$(R ((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyRNs  cCs®dddddd|iig}d d dd |iifg}|i|i||ƒ}|ii|ƒ}hdd6dd 6dd 6}|iii|i||i|ƒdS(Ns--nametnoobs--default-prefix-lengtht8s--min-prefix-lengthRRGRIRRR(snameRx(sdefault_prefix_lengthRy(smin_prefix_lengthRy( R RR<R$R@R RvRAR`(R R=R>RERatattrs((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyt test_set_this\s"   cCsÏdddddd|iig}dddgfd d|iifg}|i|i||ƒ}|ii|ƒ}ddg}|i|iiƒh|d6dd 6}|iii |i||i |ƒdS( Ns --pool-prefixs 10.0.1.0/24s 10.0.2.0/24s--max-prefix-lengtht16RRHRR(smax_prefix_lengthR|( R RR<R$R@textendRR RvRAR`(R R=R>RERaRRz((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyt test_set_thatvs"    cCs\|iig}d|iifg}|i|i||ƒ}|iti|ii|ƒdS(NR(R RR<R$R9Rt CommandErrorR@(R R=R>RE((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyttest_set_nothings cCsSdd|iig}dd|iifg}|iti|i|i||ƒdS(Ns--max-prefix-lengths-16RHR(smax_prefix_lengths-16(R RR9RKRLR<R$(R R=R>((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyttest_set_len_negative˜s cCs¦d|ii|iig}d|iifd|iifg}|i|i||ƒ}|ii|ƒ}h|iid6}|iii |i||i |ƒdS(Ns--address-scopeRTRR( R%RR RR<R$R@R RvRAR`(R R=R>RERaRz((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyttest_set_address_scope¥s   cCs‘d|iig}dtfd|iifg}|i|i||ƒ}|ii|ƒ}hdd6}|iii |i||i |ƒdS(Ns--no-address-scopetno_address_scopeRR( R RR3R<R$R@R/R RvRAR`(R R=R>RERaRz((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyttest_set_no_address_scope¹s    cCsqd|iid|iig}d|iifdtfd|iifg}|iti|i|i ||ƒdS(Ns--address-scopes--no-address-scopeRTRƒR( R%RR RR3R9R:R;R<R$(R R=R>((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyt"test_set_no_address_scope_conflictÍs  (R R RVRWRXR RYRZR%RR{R~R€RR‚R„R…(((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyRuGs      tTestShowSubnetPoolc BseZeiiƒZdZeieiei ei ei ei ei eieieieiƒeieif Zd „Zd „Zd„ZRS(RRRRRRRRRRRRcCsMtt|ƒiƒtid|iƒ|i_ti |i |i ƒ|_ dS(NR( RR†RRRR R R^RtShowSubnetPoolRR#R$(R ((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyRs cCs2g}g}|iti|i|i||ƒdS(N(R9R:R;R<R$(R R=R>((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyttest_show_no_options scCs|iig}d|iifg}|i|i||ƒ}|ii|ƒ\}}|iii|iidtƒ|i |i |ƒ|i |i |ƒdS(NRtignore_missing( R RR<R$R@R R^RARlRBRCRD(R R=R>RERCRD((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyttest_show_all_optionss  ( saddress_scope_idsdefault_prefixlens default_quotasids ip_versions is_defaults max_prefixlens min_prefixlensnamesprefixess project_idsshared(R R RVRWRXR RCRRRRRRRRRRR[RRPRRDRRˆRŠ(((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyR†Þs8  (RKR0Rtopenstackclient.commonRRtopenstackclient.network.v2Rtopenstackclient.testsRt!openstackclient.tests.identity.v3R't openstackclient.tests.network.v2RVR:t TestNetworkV2RR R\RcRuR†(((sa/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/network/v2/test_subnet_pool.pyts    ½!E—