config root man

Current Path : /usr/local/lib/python2.5/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/test/test_optparse.pyo

hRc@sddkZddkZddkZddkZddkZddkZddklZddklZddkl	Z	ddk
lZlZl
Z
lZlZlZlZlZlZlZlZlZlZlZddk
lZddk
lZyeefWnej
od`\ZZnXeeid
Z de!fdYZ"d
efdYZ#dei$fdYZ%de%fdYZ&de%fdYZ'de%fdYZ(de%fdYZ)hdd<dd<dad<dcd<Z*dZ+d efd!YZ,d"e%fd#YZ-d$e%fd%YZ.d&e%fd'YZ/d(e%fd)YZ0d*e%fd+YZ1d,e%fd-YZ2d.e%fd/YZ3d0e%fd1YZ4d2e%fd3YZ5d4e%fd5YZ6d6e%fd7YZ7d8e%fd9YZ8d:e%fd;YZ9d<e%fd=YZ:d>e%fd?YZ;d@e%fdAYZ<dBe%fdCYZ=dDe%fdEYZ>dFe%fdGYZ?dHe%fdIYZ@dJe%fdKYZAdLeAfdMYZBdNeAfdOYZCdPe%fdQYZDdRZEdSZFdTZGdUZHdVe%fdWYZIdXe%fdYYZJdZe%fd[YZKd\ZLd]ZMd^ZNeOd_joeiPndS(diN(tStringIO(tpprint(ttest_support(tmake_optiontOptiontIndentedHelpFormattertTitledHelpFormattertOptionParsertOptionContainertOptionGroupt
SUPPRESS_HELPtSUPPRESS_USAGEtOptionErrortOptionConflictErrortBadOptionErrortOptionValueErrortValues(t
_match_abbrev(t
_parse_numiittInterceptedErrorcBs#eZddddZdZRS(cCs||_||_||_dS(N(t
error_messagetexit_statustexit_message(tselfRRR((s./usr/local/lib/python2.5/test/test_optparse.pyt__init__'s		cCs|ip|ipdS(Nsintercepted error(RR(R((s./usr/local/lib/python2.5/test/test_optparse.pyt__str__/sN(t__name__t
__module__tNoneRR(((s./usr/local/lib/python2.5/test/test_optparse.pyR&stInterceptingOptionParsercBs eZdddZdZRS(icCstd|d|dS(NRR(R(Rtstatustmsg((s./usr/local/lib/python2.5/test/test_optparse.pytexit3scCstd|dS(NR(R(RR ((s./usr/local/lib/python2.5/test/test_optparse.pyterror6sN(RRRR!R"(((s./usr/local/lib/python2.5/test/test_optparse.pyR2stBaseTestcBsDeZdZdZdZdddZdZdZRS(cCsb|ii|\}}t|}|i||dt|i||dt||fS(sAssert the options are what we expected when parsing arguments.

        Otherwise, fail with a nicely formatted message.

        Keyword arguments:
        args -- A list of arguments to parse with OptionParser.
        expected_opts -- The options expected.
        expected_positional_args -- The positional arguments expected.

        Returns the options and positional args for further testing.
        sJ
Options are %(optdict)s.
Should be %(expected_opts)s.
Args were %(args)s.sj
Positional arguments are %(positional_args)s.
Should be %(expected_positional_args)s.
Args were %(args)s.(tparsert
parse_argstvarstassertEqualtlocals(Rtargst
expected_optstexpected_positional_argstoptionstpositional_argstoptdict((s./usr/local/lib/python2.5/test/test_optparse.pyt
assertParseOK;s
cCs|djo
d}n|djo
h}ny|||Wn||j
op}t|}t|to*|i|i|d|i|fn|i||d||f|SnX|idt	dS(s-
        Assert that the expected exception is raised when calling a
        function, and that the right error message is included with
        that exception.

        Arguments:
          func -- the function to call
          args -- positional arguments to `func`
          kwargs -- keyword arguments to `func`
          expected_exception -- exception that should be raised
          expected_message -- expected exception message (or pattern
            if a compiled regex object)

        Returns the exception raised for further testing.
        sLexpected exception message pattern:
/%s/
actual exception message:
'''%s'''
sHexpected exception message:
'''%s'''
actual exception message:
'''%s'''
snexpected exception %(expected_exception)s not raised
called %(func)r
with args %(args)r
and kwargs %(kwargs)r
N((
Rtstrt
isinstancetretypetassert_tsearchtpatternR'tfailR((RtfuncR)tkwargstexpected_exceptiontexpected_messageterrtactual_message((s./usr/local/lib/python2.5/test/test_optparse.pytassertRaisesYs"



		cCsPy|ii|Wn(tj
o}|i|i|nX|iddS(s
        Assert the parser fails with the expected message.  Caller
        must ensure that self.parser is an InterceptingOptionParser.
        sexpected parse failureN(R$R%RR'RtassertFalse(Rtcmdline_argstexpected_outputR;((s./usr/local/lib/python2.5/test/test_optparse.pytassertParseFails
ic		Csti}t|dd}yWz7tt_|o|ti_n|ii|Wdtii}|t_XWnt	j
o}|i
t|ti
jdt|||jo!|id|d|dn|i|i||i|i|nX|iddS(s7Assert the parser prints the expected output on stdout.tencodingNs0expected output to be an ordinary string, not %rsexpected: 
'''
s'''
but got 
'''
s'''sexpected parser.exit()(tsyststdouttgetattrRRRBR$R%tgetvalueRR3ttypettypest
StringTypeR6R'RRR>(	RR?R@texpected_statustexpected_errortsave_stdoutRBtoutputR;((s./usr/local/lib/python2.5/test/test_optparse.pytassertOutputs*	
cGs|i||dt|dS(s4Assert that TypeError is raised when executing func.N(R=Rt	TypeError(RR7R:R)((s./usr/local/lib/python2.5/test/test_optparse.pytassertTypeErrorscCs@|i}||jo#|id|d|dndS(Nshelp text failure; expected:
"s	"; got:
"s"
(tformat_helptfailureException(RR$t
expected_helptactual_help((s./usr/local/lib/python2.5/test/test_optparse.pyt
assertHelps
N(	RRR/R=RARRNRPRU(((s./usr/local/lib/python2.5/test/test_optparse.pyR#:s		;		tTestOptionCheckscBseZdZghdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZRS(cCstdt|_dS(Ntusage(RRR$(R((s./usr/local/lib/python2.5/test/test_optparse.pytsetUpscCs|it||t|dS(N(R=RR(RR:R)R8((s./usr/local/lib/python2.5/test/test_optparse.pytassertOptionErrorscCs|itddS(Ns+at least one option string must be supplied(RPR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_opt_string_emptys	cCs|iddgdS(Ns?invalid option string 'b': must be at least two characters longtb(RY(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_opt_string_too_shortscCs|iddgdS(NsOinvalid short option string '--': must be of the form -x, (x any non-dash char)s--(RY(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_opt_string_short_invalidscCs|iddgdS(NsJinvalid long option string '---': must start with --, followed by non-dashs---(RY(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_opt_string_long_invalidscCs,|iddghdd<dd<dS(Ns.option -b: invalid keyword arguments: bar, foos-btfootbar(RYR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_attr_invalidscCs#|iddghdd<dS(Ns option -b: invalid action: 'foo's-bR_taction(RY(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_action_invalidscCsB|iddghdd<|iddghtd<dS(Ns%option -b: invalid option type: 'foo's-bR_RGs'option -b: invalid option type: 'tuple'(RYttuple(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_type_invalidscCs,|iddghdd<dd<dS(Ns4option -b: must not supply a type for action 'count's-btcountRbtintRG(RY(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_no_type_for_actionscCs&|idddghdd<dS(Ns@option -b/--bad: must supply a list of choices for type 'choice's-bs--badtchoiceRG(RY(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_no_choices_listscCsBtdi}|id|ddghdd<dd<dS(	NRsBoption -b/--bad: choices must be a list of strings ('%s' supplied)s-bs--badRiRGsbad choicestchoices(RGRRY(Rttypename((s./usr/local/lib/python2.5/test/test_optparse.pyttest_bad_choices_lists	cCs,|iddghdd<dd<dS(Ns1option -b: must not supply choices for type 'int's-bRgRGtbadRk(RY(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_no_choices_for_typescCs,|iddghdd<dd<dS(Ns:option -b: 'const' must not be supplied for action 'store's-btstoreRbitconst(RY(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_no_const_for_actionscCs,|iddghdd<dd<dS(Ns:option -b: 'nargs' must not be supplied for action 'count's-bRfRbitnargs(RY(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_no_nargs_for_actionscCs,|iddghdd<dd<dS(Ns'option -b: callback not callable: 'foo's-btcallbackRbR_(RY(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_callback_not_callable#scCsdS(N((R((s./usr/local/lib/python2.5/test/test_optparse.pytdummy)scCs8|iddghdd<|id<dd<dS(NsAoption -b: callback_args, if supplied, must be a tuple: not 'foo's-bRuRbR_t
callback_args(RYRw(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_callback_args_no_tuple,s
cCs8|iddghdd<|id<dd<dS(NsBoption -b: callback_kwargs, if supplied, must be a dict: not 'foo's-bRuRbR_tcallback_kwargs(RYRw(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_callback_kwargs_no_dict4s
cCs,|iddghdd<dd<dS(Ns<option -b: callback supplied ('foo') for non-callback options-bRpRbR_Ru(RY(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_no_callback_for_action<scCs,|iddghdd<dd<dS(Ns9option -b: callback_args supplied for non-callback options-bRpRbR_Rx(RY(R((s./usr/local/lib/python2.5/test/test_optparse.pyt test_no_callback_args_for_actionBscCs,|iddghdd<dd<dS(Ns;option -b: callback_kwargs supplied for non-callback options-bRpRbR_Rz(RY(R((s./usr/local/lib/python2.5/test/test_optparse.pyt"test_no_callback_kwargs_for_actionHs(RRRXRYRZR\R]R^RaRcReRhRjRmRoRrRtRvRwRyR{R|R}R~(((s./usr/local/lib/python2.5/test/test_optparse.pyRVs,																				tTestOptionParsercBskeZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZRS(c	CsWt|_|iidddddddd|iid	d
ddddddS(
Ns-vs	--verboses-ns--noisyRbt
store_truetdesttverboses-qs--quiets--silenttstore_false(RR$t
add_option(R((s./usr/local/lib/python2.5/test/test_optparse.pyRXOs

cCs|i|iidddS(Nsnot an Option instance: None(RPR$RR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_add_option_no_OptionVscCs |i|iiddddS(Nsinvalid arguments(RPR$RR(R((s./usr/local/lib/python2.5/test/test_optparse.pyt!test_add_option_invalid_argumentsZscCs|iid}|it|t|i|iddg|i|iddg|i|id|i|i	ddS(Ns-vs-ns	--verboses--noisyRR(
R$t
get_optionR3R1RR't_short_optst
_long_optsRbR(Rtopt1((s./usr/local/lib/python2.5/test/test_optparse.pyttest_get_option^scCs||iid}|iid}|iid}|iid}|i||jo|jo
|jndS(Ns-vs	--verboses-ns--noisy(R$RR3(RRtopt2topt3topt4((s./usr/local/lib/python2.5/test/test_optparse.pyttest_get_option_equalsfs
cCs6|i|iid|i|iiddS(Ns-vs	--verbose(R3R$t
has_option(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_has_optionmscCs|i|iiddj|i|iiddj|i|iiddj|i|iiddj|i|iid|i|iid|i|iid|i|iid|i|iid|i|iiddS(Ns-vs	--verboses-ns--noisys-qs--silent(R3R$RRtfailIfR(R((s./usr/local/lib/python2.5/test/test_optparse.pytassert_removedqscCs|iid|idS(Ns-n(R$t
remove_optionR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_remove_short_optscCs|iid|idS(Ns	--verbose(R$RR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_remove_long_optscCs#|i|iiddtddS(NR_sno such option 'foo'(sfoo(R=R$RRt
ValueError(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_remove_nonexistentscCsddg}ti|}t}|idd||_|i~|i|ti|dS(Ni*s-as	--aaarggh(RCtgetrefcountRRt	big_thingtdestroyR'(RRtrefcountR$((s./usr/local/lib/python2.5/test/test_optparse.pyttest_refleaks			
(
RRRXRRRRRRRRRR(((s./usr/local/lib/python2.5/test/test_optparse.pyRNs										tTestOptionValuescBseZdZdZRS(cCsdS(N((R((s./usr/local/lib/python2.5/test/test_optparse.pyRXscCst}|it|h|i|h|i|hdd<|i|dhdd<dd<}td|}|it|||i|||i|hdd<|i|h|i|d|i|gdS(NR`R_Ri*tbaztdefaults(RR'R&tassertNotEqual(Rtvaluestdict((s./usr/local/lib/python2.5/test/test_optparse.pyttest_basicss	(RRRXR(((s./usr/local/lib/python2.5/test/test_optparse.pyRs	tTestTypeAliasescBs,eZdZdZdZdZRS(cCst|_dS(N(RR$(R((s./usr/local/lib/python2.5/test/test_optparse.pyRXscCs9|iiddd|i|iididdS(Ns-sRGR0tstring(R$RtassertEqualsRRG(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_str_aliases_stringscCsn|iiddt|i|iidid|iiddt|i|iididdS(Ns-sRGRs-xRg(R$RR0RRRGRg(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_new_type_objectscCst|iiddti|i|iidid|iiddti|i|iididdS(Ns-sRGRs-xRg(R$RRHRIRRRGtIntType(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_old_type_objects(RRRXRRR(((s./usr/local/lib/python2.5/test/test_optparse.pyRs			tsi<tmthitdcCsoy=|diot|Snt|d t|dSWn+tj
o}td||fnXdS(Nisoption %s: invalid duration: %r(tisdigitRgt_time_unitsRR(toptiontopttvaluet
IndexError((s./usr/local/lib/python2.5/test/test_optparse.pyt_check_durationstDurationOptioncBs1eZeidZeieiZeed<RS(tduration(R(RRRtTYPEStcopytTYPE_CHECKERR(((s./usr/local/lib/python2.5/test/test_optparse.pyRs
tTestDefaultValuescBs5eZdZdZdZdZdZRS(cCst|_|iidddt|iidddd|iidd	d
dd|iidd	d
|iid
dd|iid|iidddhtd<dd<dd<dd<dd<dd<|_dS(Ns-vs	--verbosetdefaults-qs--quietRRs-nRGRgi%s-ms-sR_s-ts-utnRRtttu(RR$RtTrueRtexpected(R((s./usr/local/lib/python2.5/test/test_optparse.pyRXs
				cCs |i|ii|idS(N(R'R$tget_default_valuesR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_basic_defaultsscCs[|iidddd|iihdd<dd<|i|ii|idS(NRi*Ri(R$tset_defaultsRtupdateR'R(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_mixed_defaults_posts"cCs|iidddd|iiddd|iid|iihdd<dd<|i|ii|i|iid|iiddd|iihdd<|i|ii|idS(	Ntxtbarftytblahs-xRtfrobs-y(	R$RRRRR'RRR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_mixed_defaults_pres"cCst|i_|iiddddd|iiddddd|iidd	|iihdd
<dd<d
d<|i|ii|i|ii	t
|iihdd
<dd<d	d<|i|ii|idS(Ns-dRGRRi,s-et6mRt42Rihtei*(RR$toption_classRRRRR'Rtset_process_default_valuestFalse(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_process_defaults++(RRRXRRRR(((s./usr/local/lib/python2.5/test/test_optparse.pyRs
				
tTestProgNamecBs2eZdZdZdZdZdZRS(s]
    Test that %prog expands to the right thing in usage, version,
    and help strings.
    cCs|i|i|dS(N(R't	get_usage(RR$texpected_usage((s./usr/local/lib/python2.5/test/test_optparse.pytassertUsagescCs|i|i|dS(N(R'tget_version(RR$texpected_version((s./usr/local/lib/python2.5/test/test_optparse.pyt
assertVersionscCsti}zstiidddtid<tddd}d}|i|||i|d	|i||d
dWd|ti(XdS(NR_R`sbaz.pyis	%prog ...tversions	%prog 1.2sUsage: baz.py ...
s
baz.py 1.2s
slOptions:
  --version   show program's version number and exit
  -h, --help  show this help message and exit
(	RCtargvtostpathtjoinRRRRU(Rt	save_argvR$R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_default_prognames
	cCsstdddddd}|id|idd	}|i|||i|d
|i||ddS(NtprogtthingyRs	%prog 0.1RWs
%prog arg args-hs	--versionsUsage: thingy arg arg
s
thingy 0.1s
(RRRRRU(RR$R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_custom_progname)s	

(RRt__doc__RRRR(((s./usr/local/lib/python2.5/test/test_optparse.pyRs
			tTestExpandDefaultscBsbeZdZdZdZdZdZdZdZdZ	dZ
d	ZRS(
cCsHtdd|_d|_d|_|id|_|id|_dS(NRttestsXUsage: test [options]

Options:
  -h, --help            show this help message and exit
s"read from FILE [default: %default]s:  -f FILE, --file=FILE  read from FILE [default: foo.txt]
s7  -f FILE, --file=FILE  read from FILE [default: none]
(RR$thelp_prefixt	file_helptexpected_help_filetexpected_help_none(R((s./usr/local/lib/python2.5/test/test_optparse.pyRX6s		
cCs<|iiddddd|i|i|i|idS(Ns-fs--fileRsfoo.txtthelp(R$RRRUR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_option_defaultDs
cCsI|iiddd|i|iidd|i|i|idS(Ns-fs--fileRtfilesfoo.txt(R$RRtset_defaultRUR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_parser_default_1Js
cCsI|iiddd|i|iidd|i|i|idS(Ns-fs--fileRRsfoo.txt(R$RRRRUR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_parser_default_2Ps
cCs6|iiddd|i|i|i|idS(Ns-fs--fileR(R$RRRUR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_no_defaultVs
cCs<|iiddddd|i|i|i|idS(Ns-fs--fileRR(R$RRRRUR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_default_none_1[s
cCsI|iiddd|i|iidd|i|i|idS(Ns-fs--fileRR(R$RRRRRUR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_default_none_2as
cCsP|iidddd|iidd|id}|i|i|dS(Ns-ps--probRs1blow up with probability PROB [default: %default]tprobgQ?sF  -p PROB, --prob=PROB  blow up with probability PROB [default: 0.43]
(R$RRRRU(RRS((s./usr/local/lib/python2.5/test/test_optparse.pyttest_float_defaultgs		cCsH|iiddddddd|ii_|i|i|idS(Ns-fs--fileRsfoo.txtRs#read from FILE [default: *DEFAULT*]s	*DEFAULT*(R$Rt	formattertdefault_tagRUR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_alt_expandps
cCsR|iiddddddd|ii_|id}|i|i|dS(Ns-fs--fileRsfoo.txtRsread from %default files0  -f FILE, --file=FILE  read from %default file
(R$RRRRRRU(RRS((s./usr/local/lib/python2.5/test/test_optparse.pyttest_no_expandws(RRRXRRRRRRRRR(((s./usr/local/lib/python2.5/test/test_optparse.pyR5s										tTestStandardcBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZdZdZdZdZRS(cCsXtdddtddddddtd	d
dg}tdtd
||_dS(Ns-aRGRs-bs--booRgRtboos--fooRbtappendRWtoption_list(RRRR$(RR,((s./usr/local/lib/python2.5/test/test_optparse.pyRXs
cCs|idgddS(Ns-as-a option requires an argument(RA(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_required_valuescCs|iddgddS(Ns-bt5xs&option -b: invalid integer value: '5x'(RA(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_invalid_integerscCs|idgddS(Ns--boo13sno such option: --boo13(RA(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_no_such_optionscCs|idgddS(Ns--boo=x5s)option --boo: invalid integer value: 'x5'(RA(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_long_invalid_integerscCs2|ighdd<dd<dd<gdS(NtaRR_(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyt
test_emptyscCsD|iddddghdd<dd<ddgd<gdS(	Ns-aRs
--foo=blahs--foo=RRRR_(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyt"test_shortopt_empty_longopt_appends$cCsJ|idddddghdd<dd<dddgd<gdS(	Ns--fooR`Rs--foo=xRRRR_(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_long_option_appends

	cCs5|idghdd<dd<dd<gdS(Ns-abctbcRRR_(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_option_argument_joinedscCs8|iddghdd<dd<dd<gdS(Ns-at34RRR_(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_option_argument_splitscCs5|idghdd<dd<dd<gdS(Ns-b34Ri"RR_(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyt#test_option_argument_joined_integerscCs8|iddghdd<dd<dd<gdS(Ns-bs-5RiRR_(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyt+test_option_argument_split_negative_integerscCs5|idghdd<dd<dd<gdS(Ns--boo=13Ri
RR_(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyt test_long_option_argument_joinedscCs8|iddghdd<dd<dd<gdS(Ns--boot111RioRR_(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_long_option_argument_splitscCs;|iddghdd<dd<dgd<gdS(Ns	--foo=bars-axyztxyzRRR`R_(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_long_option_short_options!cCs;|iddghdd<dd<dgd<gdS(Ns--f=bars-axyzRRRR`R_(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_abbrev_long_options!cCsG|iig\}}|ii}|it|t|dS(N(R$R%RR'R&(RR,R)R((s./usr/local/lib/python2.5/test/test_optparse.pyt
test_defaultsscCs9|iiddddddd|idgd	dS(
Ns--fozRbRpRGRRR_s--f=bars%ambiguous option: --f (--foo, --foz?)(R$RRA(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_ambiguous_options
cCsD|iddddghdd<dd<dgd<gfdS(Ns-aRs--fooR`RRR_(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyt test_short_and_long_option_splits!cCsG|idddddghdd<dd<d	dgd
<gdS(Ns	--foo=bars-bt123s--fooRRi{RR`R_(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyt*test_short_option_split_long_option_appends$cCsA|idddghdd<dd<dd<dgfdS(Ns-aR_R`RR(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyt*test_short_option_split_one_positional_argscCs|iddddghdd<dd<dd<ddgf|iddddghdd<dd<dgd<gfdS(Ns-as--R_R`RRs--foo(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyt$test_short_option_consumes_separators!cCsG|iddddghdd<dd<dd<ddgfdS(	Ns-abs--s--fooR`R[RRR_(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyt&test_short_option_joined_and_separatorscCsD|iddddghdd<dd<dgd<dgdS(	Ns-abt-s--fooR`R[RRR_(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyt"test_hyphen_becomes_positional_args!cCsJ|iddddddghdd<dd	<d
dgd<gdS(Ns-b3s-bt5s	--foo=bars--fooRRiRR`R_(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_no_append_versus_appends$cCs8|iddghdd<dd<dd<gdS(Ns-as-b3RRR_(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyt&test_option_consumes_optionlike_strings(RRRXRRRRRRRR
RR
RRRRRRRRRRRRRR R!(((s./usr/local/lib/python2.5/test/test_optparse.pyRs4																									tTestBoolcBs5eZdZdZdZdZdZRS(c	CsRtddddddddtd	d
ddddg}td||_dS(
Ns-vs	--verboseRbRRRRRs-qs--quietRR(RRR$(RR,((s./usr/local/lib/python2.5/test/test_optparse.pyRX	scCs |ighdd<gdS(NRR(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_bool_defaults	cCsU|idghdd<g\}}ttdo|i|itjndS(Ns-qiRR(R/thasattrt__builtins__t
failUnlessRR(RR,R)((s./usr/local/lib/python2.5/test/test_optparse.pyttest_bool_falses
cCsU|idghdd<g\}}ttdo|i|itjndS(Ns-viRR(R/R$R%R&RR(RR,R)((s./usr/local/lib/python2.5/test/test_optparse.pyttest_bool_true!s
cCs)|idddghdd<gdS(Ns-qvqs-qs-viR(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_bool_flicker_on_and_off(s(RRRXR#R'R(R)(((s./usr/local/lib/python2.5/test/test_optparse.pyR"s
				t
TestChoicecBs,eZdZdZdZdZRS(cCsGtdt|_|iiddddddddd	d
dgdS(NRWs-cRbRpRGRiRRktonettwotthree(RRR$R(R((s./usr/local/lib/python2.5/test/test_optparse.pyRX.scCs,|idddghdd<dgdS(Ns-cR+RRi(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_valid_choice3scCs|idddgddS(Ns-ctfourtabcsEoption -c: invalid choice: 'four' (choose from 'one', 'two', 'three')(RA(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_invalid_choice8scCs^|iiddddddg|iid}|i|id|i|iddS(	Ns-ds	--defaultRkR/tfivetsixRiRp(R$RRR'RGRb(RR((s./usr/local/lib/python2.5/test/test_optparse.pyttest_add_choice_option=s
(RRRXR.R1R4(((s./usr/local/lib/python2.5/test/test_optparse.pyR*-s			t	TestCountcBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZRS(c	Cstdt|_tddddd|_|ii|i|iiddd	dd|iid
dddddd
ddS(NRWs-vRbRfRRs	--verboseRGRgs-qs--quiettstore_constRqi(RRR$Rtv_optR(R((s./usr/local/lib/python2.5/test/test_optparse.pyRXEscCs |ighdd<gdS(NR(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyRMscCs#|idghdd<gdS(Ns-viR(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_count_onePscCs#|idghdd<gdS(Ns-vvviR(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_count_threeSscCs)|idddghdd<gdS(Ns-viR(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_count_three_apartVscCs&|iddghdd<gdS(Ns-vvvs--verbose=2iR(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_count_override_amountYscCs)|idddghdd<gdS(Ns-vvvs--verbose=2s-qiR(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_count_override_quiet\scCs,|iddddghdd<gdS(Ns-vvvs--verbose=2s-qs-viR(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_count_overriding_scCs,|idddghdd<dgdS(Ns--quiett3s-viR(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_count_interspersed_argscscCs<|ii|idddghdd<ddgdS(Ns--quietR>s-viR(R$tdisable_interspersed_argsR/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_count_no_interspersed_argshs
cCs|iddgddS(Ns-q3s-vsno such option: -3(RA(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_count_no_such_optionnscCs|iddgddS(Ns	--quiet=3s-vs$--quiet option does not take a value(RA(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_count_option_no_valueqscCs3|iidd|ighdd<gdS(NRi(R$RR/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_count_with_defaultuscCs?|iidd|iddddghdd<gdS(NRis-vvvs--verbose=2s-qs-vi(R$RR/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_count_overriding_defaultys(RRRXRR8R9R:R;R<R=R?RARBRCRDRE(((s./usr/local/lib/python2.5/test/test_optparse.pyR5Ds													tTestMultipleArgscBs5eZdZdZdZdZdZRS(cCsAtdt|_|iidddddddd	d
ddS(NRWs-ps--pointRbRpRsiRGtfloatRtpoint(RRR$R(R((s./usr/local/lib/python2.5/test/test_optparse.pyRXscCs8|iddddddghdd
<ddgdS(NR_s-pt1s2.5s-4.3Rg?g@g333333RH(g?g@g333333(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_nargs_with_positional_argsscCs2|idddddghd
d	<dgdS(Ns--points-1s2.5s-0Rgg@gRH(gg@g(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_nargs_long_optscCs |iddddgddS(Ns-ps1.0t2xs3.5s-option -p: invalid floating-point value: '2x'(RA(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_nargs_invalid_float_valuescCs|idddgddS(Ns--points1.0s3.5s#--point option requires 3 arguments(RA(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_nargs_required_valuess(RRRXRJRKRMRN(((s./usr/local/lib/python2.5/test/test_optparse.pyRF~s
				tTestMultipleArgsAppendcBs5eZdZdZdZdZdZRS(cCstdt|_|iidddddddd	d
d|iidd
ddddddd
d|iiddddd
ddddS(NRWs-ps--pointRbRpRsiRGRGRRHs-fs--fooRiRgR_s-zs--zerotappend_constRqi(ii(RRR$R(R((s./usr/local/lib/python2.5/test/test_optparse.pyRXs

cCsG|idddddddghdd<ddgd
<dgdS(Ns-ft4s-3Rs--fooRIt666RHiiiiR_(ii(ii(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_nargs_appendscCs|idgddS(Ns-f4,3s-f option requires 2 arguments(RA(R((s./usr/local/lib/python2.5/test/test_optparse.pyt!test_nargs_append_required_valuesscCs2|iddghdd<dgd<gdS(Ns--foo=3RQRHiiR_(ii(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_nargs_append_simplescCsA|idddddghdd<ddd
gd
<gdS(Ns--zeros--fooR>RQs-zRHiiiR_(ii(ii(ii(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_nargs_append_consts(RRRXRSRTRURV(((s./usr/local/lib/python2.5/test/test_optparse.pyROs
					tTestVersioncBseZdZdZRS(cCsmtdtdd|_ti}z9tiitiddtid<|i	dgdWd|ti(XdS(	NRWRs	%prog 0.1R_R`is	--versionsbar 0.1
(
RRR$RCRRRRtcurdirRN(RR((s./usr/local/lib/python2.5/test/test_optparse.pyttest_versions
"cCs)tdt|_|idgddS(NRWs	--versionsno such option: --version(RRR$RA(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_no_versions(RRRYRZ(((s./usr/local/lib/python2.5/test/test_optparse.pyRWs	
tTestConflictingDefaultscBs)eZdZdZdZdZRS(s4Conflicting default values: the last one should win.c
Cs1tdtdddddddg|_dS(	NRs-vRbRRRRi(RRR$(R((s./usr/local/lib/python2.5/test/test_optparse.pyRXscCsB|iiddddddd|ighdd<gdS(Ns-qRbRRRRi(R$RR/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_conflict_defaultscCsB|iiddddddd|ighdd<gdS(Ns-qRbRRRR(R$RRR/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_conflict_default_nones(RRRRXR\R](((s./usr/local/lib/python2.5/test/test_optparse.pyR[s		tTestOptionGroupcBs>eZdZdZdZdZdZdZRS(cCstdt|_dS(NRW(RRR$(R((s./usr/local/lib/python2.5/test/test_optparse.pyRXscCs^t|id}|ii||iddddd|idghdd<gdS(	NtSpams--spamRbRRsspam spam spam spamitspam(R	R$tadd_option_groupRR/(Rtgroup((s./usr/local/lib/python2.5/test/test_optparse.pyt!test_option_group_create_instances
cCs|i|iidddS(Ns!not an OptionGroup instance: None(RPR$RaR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_add_group_no_groupscCs |i|iiddddS(Nsinvalid arguments(RPR$RaR(R((s./usr/local/lib/python2.5/test/test_optparse.pyt test_add_group_invalid_argumentsscCsDt|id}t|_|i|ii|fdtddS(NR_s"invalid OptionGroup (wrong parser)(R	R$RR=RaRR(RRb((s./usr/local/lib/python2.5/test/test_optparse.pyttest_add_group_wrong_parserscCsX|iiddd}|id|iddd|i|iid|dS(NsGroup 2tdescriptionsSome more optionstBacons--baconRGRg(R$Rat	set_titleRR3tget_option_group(RRb((s./usr/local/lib/python2.5/test/test_optparse.pyttest_group_manipulates
	
(RRRXRcRdReRfRk(((s./usr/local/lib/python2.5/test/test_optparse.pyR^s					tTestExtendAddTypescBsKeZdZdZdefdYZdZdZdZRS(cCs]tdtd|i|_|iidddddd|iidd	dd
dd
dS(NRWRs-aRGRRRs-fs--fileR(RRtMyOptionR$RR(R((s./usr/local/lib/python2.5/test/test_optparse.pyRXscCsXtiitiotitin+tiitiotitindS(N(RRtisdirRtTESTFNtrmdirtisfiletunlink(R((s./usr/local/lib/python2.5/test/test_optparse.pyttearDownsRmcBs:eZdZeidZeieiZeed<RS(cCsRtii|ptd|n(tii|ptd|n|S(Ns%s: file does not exists%s: not a regular file(RRtexistsRRq(RRR((s./usr/local/lib/python2.5/test/test_optparse.pyt
check_files
R(sfile(RRRuRRRR(((s./usr/local/lib/python2.5/test/test_optparse.pyRms	
cCsNttidi|idtidghtid<dd<gdS(Ntws--files-afooRR_R(topenRRotcloseR/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_filetype_okscCs'|idtidgdtidS(Ns--files-afoos%s: file does not exist(RARRo(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_filetype_noexistscCs7titi|idtidgdtidS(Ns--files-afoos%s: not a regular file(RtmkdirRRoRA(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_filetype_notfiles(	RRRXRsRRmRyRzR|(((s./usr/local/lib/python2.5/test/test_optparse.pyRls				tTestExtendAddActionscBs9eZdZdefdYZdZdZRS(c	Cs=|iddddddddg}td	||_dS(
Ns-as--appleRbtextendRGRRtappleR(RmRR$(RR,((s./usr/local/lib/python2.5/test/test_optparse.pyRX$sRmcBs8eZeidZeidZeidZdZRS(R~cCs\|djo,|id}|i|gi|n ti|||||||dS(NR~t,(tsplittensure_valueR~Rttake_action(RRbRRRRR$tlvalue((s./usr/local/lib/python2.5/test/test_optparse.pyR.s

(sextend(sextend(sextend(RRRtACTIONSt
STORE_ACTIONSt
TYPED_ACTIONSR(((s./usr/local/lib/python2.5/test/test_optparse.pyRm)s


cCs/|iddghdddgd<gdS(Ns	-afoo,bars--apple=blahR_R`RR(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_extend_add_action6scCs8|iddddghddddgd<gdS(	Ns-aR_s-abars--apple=x,yR`RRR(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_extend_add_action_normal;s(RRRXRRmRR(((s./usr/local/lib/python2.5/test/test_optparse.pyR}#s	
	tTestCallbackcBs,eZdZdZdZdZRS(cCs^tddddd|itddddd|idddd	g}td
||_dS(Ns-xRbRus-fs--fileRGRRtfilenameR(RRtprocess_optRR$(RR,((s./usr/local/lib/python2.5/test/test_optparse.pyRXCs		cCsJ|djo|i|idg|i|ig|i||ij|i|dj|it|ihdd<d|i_n|djo|i|idg|i|idg|i||ij|i|d|it|ihdd<dd<t	|i|i
|n|id|dS(	Ns-xRi*s--files-fR_Rs!Unknown option %r in process_opt.(R'RRR3R$RR&RRtsetattrRR6(RRRRtparser_((s./usr/local/lib/python2.5/test/test_optparse.pyRPs
"
+cCs/|iddghdd<dd<gdS(Ns-xs
--file=fooR_Ri*R(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyt
test_callbackdscCsatdt}|id|idddddddd	d
dd}|i||dS(
NRWs-hs-ts--testRbRucSsdS(N(R(((s./usr/local/lib/python2.5/test/test_optparse.pyt<lambda>psRGRRR_s%Options:
  -t TEST, --test=TEST  foo
(RRRRRU(RR$RS((s./usr/local/lib/python2.5/test/test_optparse.pyttest_callback_helpis
(RRRXRRR(((s./usr/local/lib/python2.5/test/test_optparse.pyRBs	
		tTestCallbackExtraArgscBs#eZdZdZdZRS(cCsUtddddd|iddtfddd	d
dgg}td||_dS(
Ns-ps--pointRbRuRxiRGRRtpointsRR(Rt
process_tupleRgRR$(RR,((s./usr/local/lib/python2.5/test/test_optparse.pyRXys
	cCs|i|d|i|tj|djo|i|dn"|djo|i|dntt||id}t|i|ii	|dS(Nis-ps1,2,3s--points4,5,6R(
R'R3RgRdtmapRRERRR(RRRRRtlenRG((s./usr/local/lib/python2.5/test/test_optparse.pyRs

cCs/|idddghddgd
<gdS(
Ns-p1,2,3s--points4,5,6iiiiiiR(iii(iii(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_callback_extra_argss(RRRXRR(((s./usr/local/lib/python2.5/test/test_optparse.pyRxs		tTestCallbackMeddleArgscBs,eZdZdZdZdZRS(cCsdg}tdddD].}|tt|ddd|iddq~}td||_dS(NiiRbRuRtthingsR(trangeRR0t	process_nRR$(Rt_[1]RR,((s./usr/local/lib/python2.5/test/test_optparse.pyRXsGcCst|d}|i}t||jo|id||fn|ii|ig}|it|d|!|i	i||d|5dS(Nis$Expected %d arguments for %s option.i(
RgtrargsRR6RRRRRdtlargs(RRRRRRsRR((s./usr/local/lib/python2.5/test/test_optparse.pyRs	cCs>|iddddddghd
dgd<dd	gdS(Ns-1R_s-3R`RtquxRii(sfoo(sbarsbazR(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_callback_meddle_argsscCs/|idddghdgd<dgdS(Ns-2R_s--Ri(sfoos--(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyt#test_callback_meddle_args_separators(RRRXRRR(((s./usr/local/lib/python2.5/test/test_optparse.pyRs			tTestCallbackManyArgscBs#eZdZdZdZRS(cCsjtddddddd|iddtd	d
ddddd|iddg}td
||_dS(Ns-as--appleRbRuRsiRGRs-bs--bobiRgR(Rtprocess_manyRR$(RR,((s./usr/local/lib/python2.5/test/test_optparse.pyRXs
cCs|djo|i|dnd|djo|i|dnC|djo|i|dn"|djo|i|dndS(Ns-aR_R`s--appletdingtdongs-biiis--bobifi*i(sfoosbar(RR(iii(ifi*i(R'(RRRRR((s./usr/local/lib/python2.5/test/test_optparse.pyRs



cCsS|iddddddddd	d
ddd
dghdd<dd<gdS(Ns-aR_R`s--appleRRs-bRIt2R>s--bobs-666Rt0Rtbob(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_many_argss
(RRRXRR(((s./usr/local/lib/python2.5/test/test_optparse.pyRs		
tTestCallbackCheckAbbrevcBs#eZdZdZdZRS(cCs/t|_|iidddd|idS(Ns	--foo-barRbRu(RR$Rtcheck_abbrev(R((s./usr/local/lib/python2.5/test/test_optparse.pyRXscCs|i|ddS(Ns	--foo-bar(R'(RRRRR$((s./usr/local/lib/python2.5/test/test_optparse.pyRscCs|idghgdS(Ns--foo(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_abbrev_callback_expansions(RRRXRR(((s./usr/local/lib/python2.5/test/test_optparse.pyRs		tTestCallbackVarArgscBsGeZdZdZdZdZdZdZdZRS(cCsstdddddddtdd	d
ddtdd
d	dd|iddg}tdtd||_dS(Ns-aRGRgRsiRRs-bRbRR[s-cs
--callbackRutcRWR(Rt
variable_argsRRR$(RR,((s./usr/local/lib/python2.5/test/test_optparse.pyRXscCs|i|djd}g}|i}x|o|d}|d djot|djp5|d djo)t|djo|ddjoPq+|i||d=q+Wt|i|i|dS(Niis--iR(R3RRRRRRR(RRRRR$tdoneRtarg((s./usr/local/lib/python2.5/test/test_optparse.pyRs	
$5
cCsG|idddddghdd<dd	<ddgd
<gdS(Ns-a3s-5s
--callbackR_R`iiRR[R(ii(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_variable_argss$cCsP|iddddddghdd<td<dddgd	<dgdS(
Ns-ct37s--txxxs-bthelloRR[R(R/RR(R((s./usr/local/lib/python2.5/test/test_optparse.pyt%test_consume_separator_stop_at_options

	cCsM|idddddghdd<dd<dddgd<dgdS(	NRs-cR_RR`RR[R(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyt%test_positional_arg_and_variable_argss

	cCs>|idddghdd<td<dgd<gdS(Ns-cR_s-bRR[R(R/RR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_stop_at_options!cCs |iddddgddS(Ns-cR>s-5s-asno such option: -5(RA(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_stop_at_invalid_options(	RRRXRRRRRR(((s./usr/local/lib/python2.5/test/test_optparse.pyRs						tConflictBasecBseZdZdZRS(c	Cs@tddddddddg}td	td
||_dS(Ns-vs	--verboseRbRfRRRsincrement verbosityRWR(RRRR$(RR,((s./usr/local/lib/python2.5/test/test_optparse.pyRX
scCsd|i_dS(Ni(Rtshow_version(RRRRR$((s./usr/local/lib/python2.5/test/test_optparse.pyRs(RRRXR(((s./usr/local/lib/python2.5/test/test_optparse.pyR	s	tTestConflictcBs2eZdZdZdZdZdZRS(s9Use the default conflict resolution for Optik 1.2: error.cCsc|i|d
hdd<|id<dd<td}|i|id|i|id	dS(Ns-vs	--versionRuRbsshow versionRs5option -v/--version: conflicting option string(s): -vs conflicting option string(s): -vs-v/--version(s-vs	--version(R=RR
R'R t	option_id(RR7R;((s./usr/local/lib/python2.5/test/test_optparse.pytassert_conflict_errors	cCs|i|iidS(N(RR$R(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_conflict_error scCs&t|id}|i|idS(NsGroup 1(R	R$RR(RRb((s./usr/local/lib/python2.5/test/test_optparse.pyttest_conflict_error_group#scCs#|i|iiddtddS(NR_s'invalid conflict_resolution value 'foo'(sfoo(R=R$tset_conflict_handlerRR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_no_such_conflict_handler's(RRRRRRR(((s./usr/local/lib/python2.5/test/test_optparse.pyRs
			tTestConflictResolvecBs>eZdZdZdZdZdZdZRS(c	CsIti||iid|iiddddd|idddS(Ntresolves-vs	--versionRbRuRsshow version(RRXR$RRR(R((s./usr/local/lib/python2.5/test/test_optparse.pyRX.s
cCs|iid}|iid}|iid}|i||j|i||j	|i|idg|i|idg|i|idg|i|ig|i|idgdS(Ns-vs	--verboses	--version(R$RR3R'RR(RR7tverbose_opttversion_opt((s./usr/local/lib/python2.5/test/test_optparse.pyttest_conflict_resolve4scCs|idgddS(Ns-hs}Options:
  --verbose      increment verbosity
  -h, --help     show this help message and exit
  -v, --version  show version
(RN(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_conflict_resolve_helpAscCs,|idghdd<dd<gdS(Ns-vRiR(R/R(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_conflict_resolve_short_optIscCs#|idghdd<gdS(Ns	--verboseiR(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_conflict_resolve_long_optNscCs/|iddghdd<dd<gdS(Ns	--verboses	--versioniRR(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_conflict_resolve_long_optsSs(RRRXRRRRR(((s./usr/local/lib/python2.5/test/test_optparse.pyR-s		
			tTestConflictOverridecBs,eZdZdZdZdZRS(cCsvtdt|_|iid|iiddddddd	d
|iidddddd
ddd	ddS(NRWRs-ns	--dry-runRbRRtdry_runRsdon't do anythingR6Rqi*sdry run mode(RRR$RR(R((s./usr/local/lib/python2.5/test/test_optparse.pyRXYscCsB|iid}|i|idg|i|idgdS(Ns	--dry-runs-n(R$RR'RR(RR((s./usr/local/lib/python2.5/test/test_optparse.pyttest_conflict_override_optscscCs|idgddS(Ns-hsXOptions:
  -h, --help     show this help message and exit
  -n, --dry-run  dry run mode
(RN(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_conflict_override_helphscCs#|idghdd<gdS(Ns-ni*R(R/(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_conflict_override_argsos(RRRXRRR(((s./usr/local/lib/python2.5/test/test_optparse.pyRXs	
		sSUsage: bar.py [options]

Options:
  -a APPLE           throw APPLEs at basket
  -b NUM, --boo=NUM  shout "boo!" NUM times (in order to frighten away all the
                     evil spirits that cause trouble and mayhem)
  --foo=FOO          store FOO in the foo list for later fooing
  -h, --help         show this help message and exit
sSUsage: bar.py [options]

Options:
  -a APPLE           throw APPLEs at basket
  --boo=NUM, -b NUM  shout "boo!" NUM times (in order to frighten away all the
                     evil spirits that cause trouble and mayhem)
  --foo=FOO          store FOO in the foo list for later fooing
  --help, -h         show this help message and exit
sWUsage
=====
  bar.py [options]

Options
=======
-a APPLE           throw APPLEs at basket
--boo=NUM, -b NUM  shout "boo!" NUM times (in order to frighten away all the
                   evil spirits that cause trouble and mayhem)
--foo=FOO          store FOO in the foo list for later fooing
--help, -h         show this help message and exit
s}Usage: bar.py [options]

Options:
  -a APPLE           throw APPLEs at basket
  -b NUM, --boo=NUM  shout "boo!" NUM times (in order to
                     frighten away all the evil spirits
                     that cause trouble and mayhem)
  --foo=FOO          store FOO in the foo list for later
                     fooing
  -h, --help         show this help message and exit
tTestHelpcBskeZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZRS(cCs|id|_dS(NiP(tmake_parserR$(R((s./usr/local/lib/python2.5/test/test_optparse.pyRXscCstddddddddd	td
ddddd
ddddtdddddddddg}tiid}t|tid<ztd|SWd|djotid=n|tid<XdS(Ns-aRGRRRtmetavartAPPLERsthrow APPLEs at baskets-bs--booRgRtNUMseshout "boo!" NUM times (in order to frighten away all the evil spirits that cause trouble and mayhem)s--fooRbRR_s*store FOO in the foo list for later fooingtCOLUMNSR(RRtenvirontgetR0RR(RtcolumnsR,torig_columns((s./usr/local/lib/python2.5/test/test_optparse.pyRs
cCst|tijo+|iiti}|i|d}nti}z3t	i
iddtid<|idg|Wd|ti(XdS(NtreplaceR_sbar.pyis-h(
RGRHtUnicodeTypeR$t
_get_encodingRCRDtencodeRRRRRN(RR@RBR((s./usr/local/lib/python2.5/test/test_optparse.pytassertHelpEqualss
cCs|itdS(N(Rt_expected_help_basic(R((s./usr/local/lib/python2.5/test/test_optparse.pyt	test_helpscCs!|iid|itdS(NsUsage: %prog [options](R$t	set_usageRR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_help_old_usagescCs d|ii_|itdS(Ni(R$Rtshort_firstRt_expected_help_long_opts_first(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_help_long_opts_firstscCs t|i_|itdS(N(RR$RRt_expected_help_title_formatter(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_help_title_formatterscCs#|id|_|itdS(Ni<(RR$Rt_expected_help_short_lines(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_wrap_columnsscCsEtdt|_|iidddddd}|i|dS(NRWs-aRbRRuolé!uKOptions:
  -h, --help  show this help message and exit
  -a          olé!
(RRR$RR(Rtexpect((s./usr/local/lib/python2.5/test/test_optparse.pyttest_help_unicodescCs/tdtdd|_d}|i|dS(NRWRguolé!u>olé!

Options:
  -h, --help  show this help message and exit
(RRR$R(RR((s./usr/local/lib/python2.5/test/test_optparse.pyttest_help_unicode_descriptionscCs|iidt|idd}|iddddd|ii|d	}|i|d
|i_|i|ddS(Ns`This is the program description for %prog.  %prog has an option group as well as single options.sDangerous OptionssZCaution: use of these options is at your own risk.  It is believed that some of them bite.s-gRbRRs
Group option.sTUsage: bar.py [options]

This is the program description for bar.py.  bar.py has an option group as
well as single options.

Options:
  -a APPLE           throw APPLEs at basket
  -b NUM, --boo=NUM  shout "boo!" NUM times (in order to frighten away all the
                     evil spirits that cause trouble and mayhem)
  --foo=FOO          store FOO in the foo list for later fooing
  -h, --help         show this help message and exit

  Dangerous Options:
    Caution: use of these options is at your own risk.  It is believed
    that some of them bite.

    -g               Group option.
s Please report bugs to /dev/null.s"
Please report bugs to /dev/null.
(R$tset_descriptionR	RRaRtepilog(RRbR((s./usr/local/lib/python2.5/test/test_optparse.pyttest_help_description_groupss			
(
RRRXRRRRRRRRRR(((s./usr/local/lib/python2.5/test/test_optparse.pyRs			
						
	tTestMatchAbbrevcBseZdZdZRS(cCsA|itdhdd<dd<dd<dd<ddS(Ns--fs--fozs--foos--fie(R'RR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_match_abbrev%s
		cCsJd}hdd<dd<dd<}|it||fdtddS(Ns--fs--fozs--foos--fies,ambiguous option: --f (--fie, --foo, --foz?)(RR=RR(RRtwordmap((s./usr/local/lib/python2.5/test/test_optparse.pyttest_match_abbrev_error-s
!(RRRR(((s./usr/local/lib/python2.5/test/test_optparse.pyR$s	tTestParseNumbercBs,eZdZdZdZdZRS(cCs<t|_|iiddt|iiddtdS(Ns-nRGs-l(RR$RRgtlong(R((s./usr/local/lib/python2.5/test/test_optparse.pyRX6scCsT|itdtfhttid|itdtfhttiddS(NRs!invalid literal for int().*: '?'?t0xOoopss)invalid literal for long().*: '?0xOoops'?(R=RRgRtretcompileR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_parse_num_fail;scCs|itdtd|itdtd|itdtd|itdtd|itd	td
|itdtddS(
NRit0x10it0XAl
t010lt0b11it0bl(R'RRgR(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_parse_num_okEscCs|iddddghdd<dd<g|idd	d
ghdd<dd<g|id
gd|idgd|iddgddS(Ns-nRs-lt0x20i*Ri tlt0b0101s-l010iis-n008s'option -n: invalid integer value: '008's-l0b0123s/option -l: invalid long integer value: '0b0123't0x12xs.option -l: invalid long integer value: '0x12x'(R/RA(R((s./usr/local/lib/python2.5/test/test_optparse.pyttest_numeric_optionsMs(RRRXRRR(((s./usr/local/lib/python2.5/test/test_optparse.pyR5s		
	cCsOtit}g}t|D]*}|ido|t||qq~S(NtTest(RCtmodulesRtdirt
startswithRE(tmodRtname((s./usr/local/lib/python2.5/test/test_optparse.pyt_testclassesZs
cCs:ti}x'tD]}|iti|qW|S(N(tunittestt	TestSuiteRtaddTestt	makeSuite(tsuitet	testclass((s./usr/local/lib/python2.5/test/test_optparse.pyR^s

cCstitdS(N(Rt	run_suiteR(((s./usr/local/lib/python2.5/test/test_optparse.pyt	test_maindst__main__(iiiiiQ(QRCRRRRHR
RRRRtoptparseRRRRRRR	R
RRR
RRRRRRRt	NameErrorRGRR2t	ExceptionRRtTestCaseR#RVRRRRRRRRRRR"R*R5RFRORWR[R^RlR}RRRRRRRRRRRRRRRRRRRRRtmain(((s./usr/local/lib/python2.5/test/test_optparse.pys<module>s|^|N*	
3*N%:"+66
+'
}%			


Man Man