/usr/lib/python2.6/site-packages/cliff/tests
Edit: /usr/lib/python2.6/site-packages/cliff/tests/test_help.pyc (3524B)
Ñò
yDVc @ s³ y d d k l Z Wn d d k l Z n Xd d k Z d d k Z d d k Z d d k l Z d d k l Z d d k l
Z
d „ Z d „ Z d „ Z
d „ Z d
„ Z d S( iÿÿÿÿ( t StringION( t App( t HelpCommand( t utilsc C s± t ƒ } t d d t i t i ƒ d | ƒ} d | _ t | t i ƒ ƒ } | i d ƒ } | i
d g ƒ } y | i | ƒ Wn t j
o n X| i
ƒ d j p t ‚ d S( Nt testingt 1t stdoutt testt onet
TestParser( R R R t TestCommandManagert TEST_NAMESPACEt NAMER t mockt Mockt
get_parsert
parse_argst runt
SystemExitt getvaluet AssertionError( R t appt help_cmdt parsert parsed_args( ( s4 /tmp/pip-build-lt8jXN/cliff/cliff/tests/test_help.pyt test_show_help_for_command s c C sË t ƒ } t d d t i t i ƒ d | ƒ} d | _ t | t i ƒ ƒ } | i d ƒ } | i
d g ƒ } y | i | ƒ Wn t j
o n X| i
ƒ } d | j p t ‚ d | j p t ‚ d S( NR R R R t ts Command "t" matches:s three word command
two words
( R R R R
R R R R
R R R R R R R ( R R R R R t help_output( ( s4 /tmp/pip-build-lt8jXN/cliff/cliff/tests/test_help.pyt test_list_matching_commands" s c C sº t ƒ } t d d t i t i ƒ d | ƒ} d | _ t | t i ƒ ƒ } | i d ƒ } | i
d g ƒ } y | i | ƒ Wn% t j
o n% t
j
o n Xt p
t d ‚ d S( NR R R R t zs Should have seen a ValueError( R R R R
R R R R
R R R R R t
ValueErrort FalseR ( R R R R R ( ( s4 /tmp/pip-build-lt8jXN/cliff/cliff/tests/test_help.pyt$ test_list_matching_commands_no_match7 s c C sı t ƒ } t d d t i t i ƒ d | ƒ} d | _ t | t i ƒ ƒ } | i d ƒ } | i
g ƒ } y | i | ƒ Wn t j
o n X| i
ƒ } t i i t i d ƒ d } d | | j p t ‚ d | j p t ‚ d | j p t ‚ d S(
NR R R R i i s usage: %s [--version]s optional arguments:
--versions' one
three word command
( R R R R
R R R R
R R R R R R t ost patht splitt syst argvR ( R R R R R t help_textt basecommand( ( s4 /tmp/pip-build-lt8jXN/cliff/cliff/tests/test_help.pyt test_show_help_for_helpM s" c C s¬ t ƒ } t d d t i t i ƒ d | ƒ} d | _ y | i d g ƒ Wn t j
o n X| i ƒ } d | j p t ‚ d | j p t ‚ d | j p t ‚ d S( NR R R R s --helps two wordss three word commands old cmd(
R R R R
R R R R R R ( R R R ( ( s4 /tmp/pip-build-lt8jXN/cliff/cliff/tests/test_help.pyt test_list_deprecated_commandsd s ( R t ioR! R$ R
t cliff.appR t
cliff.helpR t cliff.testsR R R R R( R) ( ( ( s4 /tmp/pip-build-lt8jXN/cliff/cliff/tests/test_help.pyt
s