/usr/lib/python2.6/site-packages/cliff/tests
NameSizeModeActions
test_app.py136050644editdlrm
test_app.pyc176700644editdlrm
test_command.py5620644editdlrm
test_command.pyc14950644editdlrm
test_commandmanager.py33900644editdlrm
test_commandmanager.pyc48500644editdlrm
test_complete.py41260644editdlrm
test_complete.pyc66170644editdlrm
test_formatters_csv.py10510755editdlrm
test_formatters_csv.pyc16230644editdlrm
test_formatters_json.py17130755editdlrm
test_formatters_json.pyc21450644editdlrm
test_formatters_shell.py9570755editdlrm
test_formatters_shell.pyc15840644editdlrm
test_formatters_table.py12780755editdlrm
test_formatters_table.pyc22500644editdlrm
test_formatters_value.py6980755editdlrm
test_formatters_value.pyc13520644editdlrm
test_formatters_yaml.py10480755editdlrm
test_formatters_yaml.pyc16230644editdlrm
test_help.py36700644editdlrm
test_help.pyc35240644editdlrm
test_interactive.py17430644editdlrm
test_interactive.pyc33850644editdlrm
test_lister.py10380755editdlrm
test_lister.pyc21710644editdlrm
test_show.py12870755editdlrm
test_show.pyc25990644editdlrm
test_utils.py20380644editdlrm
test_utils.pyc26410644editdlrm
utils.py8170644editdlrm
utils.pyc20090644editdlrm
__init__.py00644editdlrm
__init__.pyc1380644editdlrm
Edit: /usr/lib/python2.6/site-packages/cliff/tests/test_complete.pyc (6617B)
Ñò yDVc@s¼dZddkZddklZddklZddklZd„Zddd„ƒYZ d „Z d „Z d „Z d „Z d „Zd„Zd„Zd„Zd„Zd„ZdS(sBash completion tests iÿÿÿÿN(tApp(tCommandManager(tcompletecCsÞtiƒ}|idiƒtiddgƒgƒ|idiƒtiddgƒgƒ|idiƒtiddgƒgƒ|idiƒtidd gƒgƒ|id iƒtidd gƒgƒd |iƒjpt‚|iƒ}d |ddjpt‚d|ddjpt‚d|ddjpt‚d|ddjpt‚d|ddjpt‚d|ddjpt‚d|ddjpt‚d|ddjpt‚dS(Ns image deletetoption_stringst1s image listt2s image createt3svolume type createt4svolume type deletet5s image volumetimageiscreate delete listit image_createt image_deleteit image_listi( RtCompleteDictionaryt add_commandtsplittmocktMockt get_commandstAssertionErrortget_data(tsottresult((s8/tmp/pip-build-lt8jXN/cliff/cliff/tests/test_complete.pyttest_complete_dictionary s*  t FakeStdoutcBs#eZd„Zd„Zd„ZRS(cCs g|_dS(N(tcontent(tself((s8/tmp/pip-build-lt8jXN/cliff/cliff/tests/test_complete.pyt__init__$scCs|ii|ƒdS(N(Rtappend(Rttext((s8/tmp/pip-build-lt8jXN/cliff/cliff/tests/test_complete.pytwrite'scCs(d}x|iD]}||}qW|S(Nt(R(RRtline((s8/tmp/pip-build-lt8jXN/cliff/cliff/tests/test_complete.pyt make_string*s  (t__name__t __module__RRR!(((s8/tmp/pip-build-lt8jXN/cliff/cliff/tests/test_complete.pyR#s  cCs%d}d d dddg}||fS(Ns image serverR tcreateR s--eolustserversmeta sshtserver_meta_deletes--wilsont server_sshs --sunlight(simagescreate(s image_creates--eolus(sserversmeta ssh(R&s--wilson(R's --sunlight((tcmdotdata((s8/tmp/pip-build-lt8jXN/cliff/cliff/tests/test_complete.pytgiven_cmdo_data1s cCs|d|jpt‚d|jpt‚d|jpt‚d|jpt‚d|jpt‚d|jpt‚dS(Ns cmds='image server' s cmds_image='create' s cmds_image_create='--eolus' s cmds_server='meta ssh' s% cmds_server_meta_delete='--wilson' s cmds_server_ssh='--sunlight' (R(R((s8/tmp/pip-build-lt8jXN/cliff/cliff/tests/test_complete.pyt then_data;s cCs<tƒ}tid|ƒ}|itƒŒt|iƒdS(Nt doesNotMatter(RRtCompleteNoCodeRR*R+R(toutputR((s8/tmp/pip-build-lt8jXN/cliff/cliff/tests/test_complete.pyttest_complete_no_codeDs cCsrtƒ}tid|ƒ}|itƒŒt|iƒd|idjpt‚d|idjpt‚dS(Nt openstacks _openstack() is!complete -F _openstack openstack iÿÿÿÿ(RRt CompleteBashRR*R+RR(R.R((s8/tmp/pip-build-lt8jXN/cliff/cliff/tests/test_complete.pyttest_complete_bashKs   cCs_titiƒtiƒƒ}|idƒ}d|ijpt‚d|ijpt‚dS(Ntnothings"print bash completion command (RtCompleteCommandRRt get_parsertprogRt description(Rtparser((s8/tmp/pip-build-lt8jXN/cliff/cliff/tests/test_complete.pyttest_complete_command_parserTscCs_tdƒ}tdd|dtƒƒ}ti|tiƒƒ}|idtiƒ|||fS(Ns cliff.teststtestingRtstdoutR(RRRRR4RRR(tcmd_mgrtappR((s8/tmp/pip-build-lt8jXN/cliff/cliff/tests/test_complete.pytgiven_complete_command[s  cCs1did„|Dƒƒ}d|jpt‚dS(Nt css-x&|]}x|iD] }|VqWqWdS(N(R(t.0tactiontopt((s8/tmp/pip-build-lt8jXN/cliff/cliff/tests/test_complete.pys ds s-h --help --name --shell(tjoinR(tactionstoptstr((s8/tmp/pip-build-lt8jXN/cliff/cliff/tests/test_complete.pytthen_actions_equalcscCs;tƒ\}}}t|_|idgƒ}t|ƒdS(NR(R>tFalsetinteractive_modet get_actionsRF(RR=R<RD((s8/tmp/pip-build-lt8jXN/cliff/cliff/tests/test_complete.pyt!test_complete_command_get_actionsis cCs;tƒ\}}}t|_|idgƒ}t|ƒdS(NR(R>tTrueRHRIRF(RR=R<RD((s8/tmp/pip-build-lt8jXN/cliff/cliff/tests/test_complete.pyt-test_complete_command_get_actions_interactiveps cCsÉtƒ\}}}tiƒ}d|_d|_|ii}d|i|ƒjpt‚d|djpt‚d|djpt‚d|jpt‚d|jpt‚d |jpt‚dS( Nt test_taketbashis _test_take() s!complete -F _test_take test_take iÿÿÿÿs cmds='complete help' s+ cmds_complete='-h --help --name --shell' s cmds_help='-h --help' ( R>RRtnametshellR;Rt take_actionR(RR=R<t parsed_argsR((s8/tmp/pip-build-lt8jXN/cliff/cliff/tests/test_complete.pyt!test_complete_command_take_actionws    ((t__doc__Rt cliff.appRtcliff.commandmanagerRtcliffRRRR*R+R/R2R9R>RFRJRLRS(((s8/tmp/pip-build-lt8jXN/cliff/cliff/tests/test_complete.pyts