/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_service.pyc (7765B)
Ñò þWc@s§ddkZddkZddklZddklZddklZdeifd„ƒYZ de fd„ƒYZ de fd „ƒYZ d e fd „ƒYZ dS( iÿÿÿÿN(tservice(tfakest TestServicecBseZd„ZRS(cCs9tt|ƒiƒ|iiii|_|iiƒdS(N( tsuperRtsetUptapptclient_managertcomputetservicest service_mockt reset_mock(tself((s]/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_service.pyRs(t__name__t __module__R(((s]/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_service.pyRstTestServiceDeletecBseZd„Zd„ZRS(cCs>tt|ƒiƒd|ii_ti|i dƒ|_ dS(N( RRRtNoneR tdeletet return_valueRt DeleteServiceRtcmd(R ((s]/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_service.pyR$scCsotig}dtifg}|i|i||ƒ}|ii|ƒ}|iiitiƒ|i|ƒdS(NR( t compute_fakestservice_binaryt check_parserRt take_actionR Rtassert_called_witht assertIsNone(R targlistt verifylistt parsed_argstresult((s]/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_service.pyttest_service_delete_no_options,s   (R R RR(((s]/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_service.pyR"s tTestServiceListcBs#eZd„Zd„Zd„ZRS(cCs_tt|ƒiƒtidtiti ƒdt ƒg|i i _ ti|idƒ|_dS(Ntloaded(RRRRt FakeResourceRtcopytdeepcopyRtSERVICEtTrueR tlistRRt ListServiceRR(R ((s]/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_service.pyR?s cCs³dtidtig}dtifdtifg}|i|i||ƒ}|ii|ƒ\}}|iiititiƒ|i d|ƒ|i ti t|ƒdƒdS(Ns--hosts --servicethostRsDisabled Reasoni( Rt service_hostRRRRR R&Rt assertNotIntservice_disabled_reason(R RRRtcolumnstdata((s]/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_service.pyttest_service_listKs    cCs£dtidtidg}dtifdtifdtfg}|i|i||ƒ}|ii|ƒ\}}|id|ƒ|itit |ƒdƒdS( Ns--hosts --services--longR(RtlongsDisabled Reasoni( RR)RR%RRRtassertInR+R&(R RRRR,R-((s]/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_service.pyt"test_service_list_with_long_optioncs     (R R RR.R1(((s]/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_service.pyR=s tTestServiceSetcBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCstt|ƒiƒtidtiti ƒdt ƒg|i i _ tidtiti ƒdt ƒg|i i_ ti|idƒ|_dS(NR (RR2RRR!RR"R#RR$R%R tenableRtdisableRt SetServiceRR(R ((s]/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_service.pyR{scCs“dtitig}dtfdtifdtifg}|i|i||ƒ}|ii|ƒ}|iii titiƒ|i |ƒdS(Ns--enabletenabledR(R( RR)RR%RRRR R3RR(R RRRR((s]/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_service.pyttest_service_set_enableŒs     cCs“dtitig}dtfdtifdtifg}|i|i||ƒ}|ii|ƒ}|iii titiƒ|i |ƒdS(Ns --disableR6R(R( RR)RtFalseRRRR R4RR(R RRRR((s]/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_service.pyttest_service_set_disable¡s     cCs«d}dd|titig}dtfd|fdtifdtifg}|i|i||ƒ}|ii|ƒ}|iii titi|ƒ|i |ƒdS(Nt earthquakes --disables--disable-reasonR6tdisable_reasonR(R( RR)RR8RRRR tdisable_log_reasonRR(R treasonRRRR((s]/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_service.pyt$test_service_set_disable_with_reason¶s      c Csðd}d|titig}dtfd|fdtifdtifg}|i|i||ƒ}tii|ii dƒi i ƒ}z2|~}|ii |ƒ}d}|i |ƒWdQX|iiititiƒ|i|ƒdS( NR:s--disable-reasonR6R;R(Rtinfos*argument --disable-reason has been ignored(RR)RR%RRtmocktpatchtobjecttlogt__exit__t __enter__Rtassert_called_once_withR R3RR( R R=RRRt_[1]tmock_logRtmsg((s]/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_service.pyt)test_service_set_only_with_disable_reasonÏs"    2  c Csód}dd|titig}dtfd|fdtifdtifg}|i|i||ƒ}tii|ii dƒi i ƒ}z2|~}|ii |ƒ}d }|i |ƒWdQX|iiititiƒ|i|ƒdS( NR:s--enables--disable-reasonR6R;R(RR?s*argument --disable-reason has been ignored(RR)RR%RRR@RARBRCRDRERRFR R3RR( R R=RRRRGRHRRI((s]/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_service.pyt+test_service_set_enable_with_disable_reasonês$    2  (R R RR7R9R>RJRK(((s]/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_service.pyR2ys      ( R"R@topenstackclient.compute.v2Rt openstackclient.tests.compute.v2RRtopenstackclient.testst TestComputev2RRRR2(((s]/tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_service.pyts   <