/usr/lib/python2.6/site-packages/openstackclient/tests/compute/v2
NameSizeModeActions
fakes.py35900644editdlrm
fakes.pyc37490644editdlrm
test_aggregate.py124450644editdlrm
test_aggregate.pyc142320644editdlrm
test_flavor.py88130644editdlrm
test_flavor.pyc88570644editdlrm
test_host.py22830644editdlrm
test_host.pyc27100644editdlrm
test_hypervisor.py71130644editdlrm
test_hypervisor.pyc58240644editdlrm
test_hypervisor_stats.py23490644editdlrm
test_hypervisor_stats.pyc26120644editdlrm
test_keypair.py72450644editdlrm
test_keypair.pyc75570644editdlrm
test_security_group.py58010644editdlrm
test_security_group.pyc55430644editdlrm
test_security_group_rule.py93900644editdlrm
test_security_group_rule.pyc75360644editdlrm
test_server.py209190644editdlrm
test_server.pyc159110644editdlrm
test_service.py83980644editdlrm
test_service.pyc77650644editdlrm
__init__.py00644editdlrm
__init__.pyc1760644editdlrm
Edit: /usr/lib/python2.6/site-packages/openstackclient/tests/compute/v2/test_aggregate.pyc (14232B)
Ñò þWc@sýddklZddklZddklZdeifd„ƒYZ de fd„ƒYZ de fd „ƒYZ d e fd „ƒYZ d e fd „ƒYZ de fd„ƒYZde fd„ƒYZde fd„ƒYZde fd„ƒYZdS(iÿÿÿÿ(t aggregate(tfakes(tutilst TestAggregatecBsJeZeiiƒZdZeieiei ei ei fZ d„Z RS(tavailability_zonethoststidtmetadatatnamecCs9tt|ƒiƒ|iiii|_|iiƒdS(N( tsuperRtsetUptapptclient_managertcomputet aggregatestaggregate_mockt reset_mock(tself((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyR )s(savailability_zoneshostssidsmetadatasname(t__name__t __module__t compute_fakest FakeAggregatetcreate_one_aggregatetfake_agtcolumnsRRRRRtdataR (((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyRs tTestAggregateAddHostcBseZd„Zd„ZRS(cCsStt|ƒiƒ|i|ii_|i|ii_ti |i dƒ|_ dS(N( R RR RRtgett return_valuetadd_hostRtAddAggregateHostR tNonetcmd(R((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyR 3scCs¤ddg}ddg}|i|i||ƒ}|ii|ƒ\}}|iii|iƒ|iii|i|i ƒ|i |i |ƒ|i |i |ƒdS(Ntag1thost1Rthost(s aggregateR!(shostR"( t check_parserR t take_actionRRtassert_called_once_withRRRR#t assertEqualRR(Rtarglistt verifylistt parsed_argsRR((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyttest_aggregate_add_host:s   (RRR R+(((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyR1s tTestAggregateCreatecBs,eZd„Zd„Zd„Zd„ZRS(cCsStt|ƒiƒ|i|ii_|i|ii_ti |i dƒ|_ dS(N( R R,R RRtcreateRt set_metadataRtCreateAggregateR RR (R((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyR NscCs…dg}dg}|i|i||ƒ}|ii|ƒ\}}|iii|idƒ|i|i |ƒ|i|i |ƒdS(NR!R(snamesag1( R$R R%RR-R&RRR'RR(RR(R)R*RR((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyttest_aggregate_createUs  cCs‘dddg}ddg}|i|i||ƒ}|ii|ƒ\}}|iii|i|iƒ|i|i |ƒ|i|i |ƒdS(Ns--zonetzone1R!tzoneR(szoneR1(snamesag1( R$R R%RR-R&RR2R'RR(RR(R)R*RR((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyttest_aggregate_create_with_zonecs   cCsÄdddddg}dhdd6dd 6fd g}|i|i||ƒ}|ii|ƒ\}}|iii|idƒ|iii|i |i ƒ|i |i |ƒ|i |i |ƒdS( Ns --propertys key1=value1s key2=value2R!tpropertytvalue1tkey1tvalue2tkey2R(snamesag1(R$R R%RR-R&RRR.RR4R'RR(RR(R)R*RR((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyt#test_aggregate_create_with_propertyts   (RRR R0R3R9(((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyR,Ls   tTestAggregateDeletecBseZd„Zd„ZRS(cCsAtt|ƒiƒ|i|ii_ti|i dƒ|_ dS(N( R R:R RRRRRtDeleteAggregateR RR (R((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyR ŠscCs|dg}dg}|i|i||ƒ}|ii|ƒ}|iii|iƒ|iii|ii ƒ|i |ƒdS(NR!R(s aggregatesag1( R$R R%RRR&RtdeleteRRt assertIsNone(RR(R)R*tresult((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyttest_aggregate_deletes  (RRR R?(((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyR:ˆs tTestAggregateListcBszeZdZdZeiieiieiiffZ eiieiieiihffZ d„Z d„Z d„Z RS( tIDtNamesAvailability Zonet PropertiescCsDtt|ƒiƒ|ig|ii_ti|i dƒ|_ dS(N( R R@R RRtlistRRt ListAggregateR RR (R((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyR ºscCs`|i|iggƒ}|ii|ƒ\}}|i|i|ƒ|i|it|ƒƒdS(N(R$R R%R't list_columnst list_datattuple(RR*RR((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyttest_aggregate_listÀscCsxdg}dtfg}|i|i||ƒ}|ii|ƒ\}}|i|i|ƒ|i|it|ƒƒdS(Ns--longtlong(tTrueR$R R%R'tlist_columns_longtlist_data_longRH(RR(t vertifylistR*RR((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyttest_aggregate_list_with_longÈs  (RAsNamesAvailability Zone(RAsNamesAvailability ZoneRC(RRRFRLRRRRRRGRMR RIRO(((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyR@žs"        tTestAggregateRemoveHostcBseZd„Zd„ZRS(cCsStt|ƒiƒ|i|ii_|i|ii_ti |i dƒ|_ dS(N( R RPR RRRRt remove_hostRtRemoveAggregateHostR RR (R((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyR ØscCs¤ddg}ddg}|i|i||ƒ}|ii|ƒ\}}|iii|iƒ|iii|i|i ƒ|i |i |ƒ|i |i |ƒdS(NR!R"RR#(s aggregatesag1(shostshost1( R$R R%RRR&RRQRR#R'RR(RR(R)R*RR((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyR+ßs   (RRR R+(((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyRPÖs tTestAggregateSetcBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCsAtt|ƒiƒ|i|ii_ti|i dƒ|_ dS(N( R RSR RRRRRt SetAggregateR RR (R((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyR óscCs‰dg}dg}|i|i||ƒ}|ii|ƒ}|iii|iƒ|i|iiƒ|i|ii ƒ|i |ƒdS(NR!R(s aggregatesag1( R$R R%RRR&RtassertNotCalledtupdateR.R=(RR(R)R*R>((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyttest_aggregate_set_no_optionùs  cCs¢dddg}ddg}|i|i||ƒ}|ii|ƒ}|iii|iƒ|iii|ih|i d6ƒ|i |ii ƒ|i |ƒdS(Ns--nametnew_nameR!RR(snamesnew_name(s aggregatesag1( R$R R%RRR&RRVRRRUR.R=(RR(R)R*R>((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyttest_aggregate_set_with_names   cCs¢dddg}ddg}|i|i||ƒ}|ii|ƒ}|iii|iƒ|iii|ih|i d6ƒ|i |ii ƒ|i |ƒdS( Ns--zonetnew_zoneR!R2RR(szoneRZ(s aggregatesag1( R$R R%RRR&RRVRR2RUR.R=(RR(R)R*R>((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyttest_aggregate_set_with_zones   cCsµdddddg}dhdd6dd 6fd g}|i|i||ƒ}|ii|ƒ}|iii|iƒ|i|iiƒ|ii i|i |i ƒ|i |ƒdS( Ns --propertys key1=value1s key2=value2R!R4R5R6R7R8R(s aggregatesag1( R$R R%RRR&RRURVR.RR4R=(RR(R)R*R>((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyt test_aggregate_set_with_property,s   (RRR RWRYR[R\(((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyRSñs     tTestAggregateShowcBsMeZdZeiieiieiieiidfZ d„Z d„Z RS( RRRRt propertiestcCsAtt|ƒiƒ|i|ii_ti|i dƒ|_ dS(N( R R]R RRRRRt ShowAggregateR RR (R((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyR RscCs‚dg}dg}|i|i||ƒ}|ii|ƒ\}}|iii|iƒ|i|i|ƒ|i|i |ƒdS(NR!R(s aggregatesag1( R$R R%RRR&RR'RR(RR(R)R*RR((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyttest_aggregate_showXs  (savailability_zoneshostssidsnameR^( RRRRRRRRRRR Ra(((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyR]@s      tTestAggregateUnsetcBs#eZd„Zd„Zd„ZRS(cCsAtt|ƒiƒ|i|ii_ti|i dƒ|_ dS(N( R RbR RRRRRtUnsetAggregateR RR (R((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyR iscCsdddg}ddgfdg}|i|i||ƒ}|ii|ƒ}|iii|ihdd6ƒ|i|ƒdS(Ns --propertyt unset_keyR!R4R(s aggregatesag1( R$R R%RR.R&RRR=(RR(R)R*R>((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyttest_aggregate_unsetos    cCs5dg}d}|iti|i|i||ƒdS(NR!(Rt assertRaisest tests_utilstParserExceptionR$R (RR(R)((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyt test_aggregate_unset_no_propertys  (RRR ReRi(((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyRbgs  N(topenstackclient.compute.v2Rt openstackclient.tests.compute.v2RRtopenstackclient.testsRRgt TestComputev2RRR,R:R@RPRSR]Rb(((s_/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_aggregate.pyts<8O'