403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python313/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/test/__pycache__/test_optparse.cpython-313.pyc
�

��i�����SSKrSSKrSSKrSSKrSSKrSSKJr SSKJr SSK	J
r
 SSKJrJ
r
 SSKrSSKJrJrJrJrJrJrJrJrJrJrJr SSKJr SSKJr "S	S
\5r"SS\5r"S
S\R>5r "SS\ 5r!"SS\ 5r""SS\ 5r#"SS\ 5r$SSSSS.r%Sr&"SS\5r'"SS \ 5r("S!S"\ 5r)"S#S$\ 5r*"S%S&\ 5r+"S'S(\ 5r,"S)S*\ 5r-"S+S,\ 5r."S-S.\ 5r/"S/S0\ 5r0"S1S2\ 5r1"S3S4\ 5r2"S5S6\ 5r3"S7S8\ 5r4"S9S:\ 5r5"S;S<\ 5r6"S=S>\ 5r7"S?S@\ 5r8"SASB\ 5r9"SCSD\ 5r:"SESF\ 5r;"SGSH\ 5r<"SISJ\<5r="SKSL\<5r>"SMSN\ 5r?SOr@SPrASQrBSRrCSSrD"STSU\ 5rE"SVSW\ 5rF"SXSY\ 5rG"SZS[\R>5rH"S\S]\5rI\JS^:XaU\K"\R�5S:�a-\R�SS_:Xa\
"\5 \R�"S5 \R�"5 gg)`�N)�StringIO)�support)�	os_helper)�TestTranslationsBase�update_translation_snapshots)�make_option�Option�TitledHelpFormatter�OptionParser�OptionGroup�SUPPRESS_USAGE�OptionError�OptionConflictError�BadOptionError�OptionValueError�Values)�
_match_abbrev)�
_parse_numc�*�\rSrSrSSjrSrSrg)�InterceptedError�Nc�(�XlX lX0lg�N)�
error_message�exit_status�exit_message)�selfrrrs    �'C:\Python313\\Lib\test\test_optparse.py�__init__�InterceptedError.__init__s��+��&��(��c�R�UR=(d UR=(d S$)Nzintercepted error)rr�rs r�__str__�InterceptedError.__str__%s���!�!�M�T�%6�%6�M�:M�Mr!)rrr)NNN)�__name__�
__module__�__qualname__�__firstlineno__rr$�__static_attributes__�r!rrrs��#�!�"�)�Nr!rc�$�\rSrSrSSjrSrSrg)�InterceptingOptionParser�(Nc��[XS9e)N)rr�r)r�status�msgs   r�exit�InterceptingOptionParser.exit)s
���6�D�Dr!c��[US9e)N)rr0)rr2s  r�error�InterceptingOptionParser.error,s
���S�1�1r!r+�rN)r&r'r(r)r3r6r*r+r!rr-r-(s
��E�2r!r-c�@�\rSrSrSrSrSrS
SjrSrSr	S	r
g)�BaseTest�0c���URRU5upE[U5nURXbS[	5-5 URXSS[	5-5 XE4$)abAssert 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.
zJ
Options are %(optdict)s.
Should be %(expected_opts)s.
Args were %(args)s.zj
Positional arguments are %(positional_args)s.
Should be %(expected_positional_args)s.
Args were %(args)s.)�parser�
parse_args�vars�assertEqual�locals)r�args�
expected_opts�expected_positional_args�options�positional_args�optdicts       r�
assertParseOK�BaseTest.assertParseOK1ss��&*�[�[�%;�%;�D�%A�"���w�-������� ��"�	#�	
����� ��#�	$��)�)r!c
��UcSnUc0nU"U0UD6 URS[5-5 g!Ua�n[U5n[U[R
5(a5UR
URU5SUR<SU<S35 OURUUSU<SU<S35 UsSnA$SnAff=f)	a�
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.
Nr+znexpected exception %(expected_exception)s not raised
called %(func)r
with args %(args)r
and kwargs %(kwargs)r
z%expected exception message pattern:
/z/
actual exception message:
'''z'''
zexpected exception message:
'''z!'''
actual exception message:
''')
�failrA�str�
isinstance�re�Pattern�
assertTrue�search�patternr@)r�funcrB�kwargs�expected_exception�expected_message�err�actual_messages        r�assertRaises�BaseTest.assertRaisesOs���*�<��D��>��F�	��$�!�&�!�.
�I�I��
�i�	�
��-"�	� ��X�N��*�B�J�J�7�7���� 0� 7� 7�� G�����1�2�� � ��!1���")�*��J��)	�s�1�B>�A<B9�3B>�9B>c���URRU5 URS5 g![a&nUR	UR
U5 SnAgSnAff=f)zy
Assert the parser fails with the expected message.  Caller
must ensure that self.parser is an InterceptingOptionParser.
zexpected parse failureN)r=r>�assertFalserr@r)r�cmdline_args�expected_outputrWs    r�assertParseFail�BaseTest.assertParseFail�sW��
	7��K�K�"�"�<�0�
���5�6�� �	A����S�.�.��@�@��	A�s�/�
A�A�ANc��[Rn[5[lURR	U5 [RR5nU[lUR
S5 g![RR5nU[lf=f![a�nUR[W[5S[U5-5 Xb:waURSU-S-U-S-5 URURU5 URURU5 SnAgSnAff=f)z7Assert the parser prints the expected output on stdout.zexpected parser.exit()z0expected output to be an ordinary string, not %rzexpected: 
'''
z'''
but got 
'''
z'''N)�sys�stdoutrr=r>�getvaluer\rrPrMrL�typerKr@rr)rr]r^�expected_status�expected_error�save_stdout�outputrWs        r�assertOutput�BaseTest.assertOutput�s���j�j��	7�
)�%�Z��
����&�&�|�4����,�,�.��(��
�
���5�6�����,�,�.��(��
���
	?��O�O��6�3�'�B��v�,��
 �
�(��	�	�-��?�0�1�39�:�<A�B�C����S�_�_�o�>����S�-�-�~�>�>��
	?�s*�.A=�)B+�=+B(�(B+�+
E�5BE�Ec�4�URXS[U5 g)z4Assert that TypeError is raised when executing func.N)rY�	TypeError)rrSrVrBs    r�assertTypeError�BaseTest.assertTypeError�s�����$�d�I�7G�Hr!c�h�UR5nX2:waURSU-S-U-S-5eg)Nzhelp text failure; expected:
"z	"; got:
"z"
)�format_help�failureException)rr=�
expected_help�actual_helps    r�
assertHelp�BaseTest.assertHelp�sQ���(�(�*���'��'�'�1��� ,�-���#�$�%�
%�(r!r+r8)r&r'r(r)rHrYr_rjrnrur*r+r!rr:r:0s*��*�<6�v
7�&'�$(�	7�:I�%r!r:c��\rSrSrSr/04SjrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrSrSrSrSrSrSrSrSrSrSrSrg)�TestOptionChecks��c�(�[[S9Ulg�N��usage�rr
r=r#s r�setUp�TestOptionChecks.setUp����"��8��r!c�<�UR[X#[U5 gr)rYrr)rrVrBrTs    r�assertOptionError�"TestOptionChecks.assertOptionError�s�����+�t�%�'7�	9r!c�0�UR[S5 g)Nz+at least one option string must be supplied)rnrr#s r�test_opt_string_empty�&TestOptionChecks.test_opt_string_empty�s�����[�J�	Lr!c�*�URSS/5 g)Nz?invalid option string 'b': must be at least two characters long�b�r�r#s r�test_opt_string_too_short�*TestOptionChecks.test_opt_string_too_short�s�����M�
�E�	r!c�*�URSS/5 g)NzOinvalid short option string '--': must be of the form -x, (x any non-dash char)�--r�r#s r�test_opt_string_short_invalid�.TestOptionChecks.test_opt_string_short_invalid�s�����
4�
�F�	r!c�*�URSS/5 g)NzJinvalid long option string '---': must start with --, followed by non-dashz---r�r#s r�test_opt_string_long_invalid�-TestOptionChecks.test_opt_string_long_invalid�s�����
7�
�G�	r!c�2�URSS/SSS.5 g)Nz.option -b: invalid keyword arguments: bar, foo�-b��foo�barr�r#s r�test_attr_invalid�"TestOptionChecks.test_attr_invalid�s�����<�
�F�D��.�	0r!c�0�URSS/SS05 g)Nz option -b: invalid action: 'foo'r��actionr�r�r#s r�test_action_invalid�$TestOptionChecks.test_action_invalid�s�����.�
�F�X�u�%�	'r!c�d�URSS/SS05 URSS/S[05 g)Nz%option -b: invalid option type: 'foo'r�rer�z'option -b: invalid option type: 'tuple')r��tupler#s r�test_type_invalid�"TestOptionChecks.test_type_invalid�s<�����3�
�F�V�U�O�	%�	
���5�
�F�V�U�O�	%r!c�2�URSS/SSS.5 g)Nz4option -b: must not supply a type for action 'count'r��count�int)r�rer�r#s r�test_no_type_for_action�(TestOptionChecks.test_no_type_for_action�s�����B�
�F�w��6�	8r!c�2�URSSS/SS05 g)Nz@option -b/--bad: must supply a list of choices for type 'choice'r��--badre�choicer�r#s r�test_no_choices_list�%TestOptionChecks.test_no_choices_list�s#�����
(�
�7�O�f�h�/�	1r!c�d�[S5RnURSU-SS/SSS.5 g)N�zBoption -b/--bad: choices must be a list of strings ('%s' supplied)r�r�r�zbad choices�re�choices)rer&r�)r�typenames  r�test_bad_choices_list�&TestOptionChecks.test_bad_choices_list�s;����8�$�$�����
&�(0�
1�
�7�O���7�		9r!c�2�URSS/SSS.5 g)Nz1option -b: must not supply choices for type 'int'r�r��badr�r�r#s r�test_no_choices_for_type�)TestOptionChecks.test_no_choices_for_types�����?�
�F�U�e�4�	6r!c�2�URSS/SSS.5 g)Nz:option -b: 'const' must not be supplied for action 'store'r��store�)r��constr�r#s r�test_no_const_for_action�)TestOptionChecks.test_no_const_for_action������H�
�F�w��3�	5r!c�2�URSS/SSS.5 g)Nz:option -b: 'nargs' must not be supplied for action 'count'r�r��)r��nargsr�r#s r�test_no_nargs_for_action�)TestOptionChecks.test_no_nargs_for_actionr�r!c�2�URSS/SSS.5 g)Nz'option -b: callback not callable: 'foo'r��callbackr��r�r�r�r#s r�test_callback_not_callable�+TestOptionChecks.test_callback_not_callables"�����5�
�F�z�!&�(�	)r!c��grr+r#s r�dummy�TestOptionChecks.dummy���r!c�H�URSS/SURSS.5 g)NzAoption -b: callback_args, if supplied, must be a tuple: not 'foo'r�r�r�)r�r��
callback_args�r�r�r#s r�test_callback_args_no_tuple�,TestOptionChecks.test_callback_args_no_tuples+�����
)�
�F�z�!%���&+�-�	.r!c�H�URSS/SURSS.5 g)NzBoption -b: callback_kwargs, if supplied, must be a dict: not 'foo'r�r�r�)r�r��callback_kwargsr�r#s r�test_callback_kwargs_no_dict�-TestOptionChecks.test_callback_kwargs_no_dict's+�����
(�
�F�z�!%���(-�/�	0r!c�2�URSS/SSS.5 g)Nz<option -b: callback supplied ('foo') for non-callback optionr�r�r�r�r�r#s r�test_no_callback_for_action�,TestOptionChecks.test_no_callback_for_action/s"�����J�
�F�w�!&�(�	)r!c�2�URSS/SSS.5 g)Nz9option -b: callback_args supplied for non-callback optionr�r�r�)r�r�r�r#s r� test_no_callback_args_for_action�1TestOptionChecks.test_no_callback_args_for_action5s"�����G�
�F�w�&+�-�	.r!c�2�URSS/SSS.5 g)Nz;option -b: callback_kwargs supplied for non-callback optionr�r�r�)r�r�r�r#s r�"test_no_callback_kwargs_for_action�3TestOptionChecks.test_no_callback_kwargs_for_action;s"�����I�
�F�w�(-�/�	0r!c�z�URSS/5 URSSS/5 URSSS/5 g)NzMinvalid long option string '-debug': must start with --, followed by non-dashz-debugzXoption -d: invalid long option string '-debug': must start with --, followed by non-dash�-dz--debugr�r#s r�test_no_single_dash�$TestOptionChecks.test_no_single_dashAsT�����
7�
�J�	�
	
���
(�
�8��	�
	
���
7�
�y�!�	#r!�r=N)r&r'r(r)rr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r*r+r!rrxrx�s}��9�8:�"�9�L��
��0�
'�
%�8�
1�9�6�
5�
5�
)�
�.�0�)�.�0�#r!rxc�~�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
\R"SS
S9S5rSrg)�TestOptionParseriQc	��[5UlURRSSSSSSS9 URRSS	S
SSS9 g)N�-v�	--verbose�-n�--noisy�
store_true�verbose�r��dest�-q�--quiet�--silent�store_false)rr=�
add_optionr#s rr�TestOptionParser.setUpRsR��"�n��������t�[�$�	�!-�I�	�	?������t�Y�
�!.�Y�	�	@r!c�R�URURRSS5 g)Nznot an Option instance: None�rnr=r�r#s r�test_add_option_no_Option�*TestOptionParser.test_add_option_no_OptionYs"�����T�[�[�3�3�;�T�	Cr!c�T�URURRSSS5 g�Nzinvalid argumentsr�r#s r�!test_add_option_invalid_arguments�2TestOptionParser.test_add_option_invalid_arguments]s#�����T�[�[�3�3�0�$��	>r!c�N�URRS5nURU[5 UR	UR
SS/5 UR	URSS/5 UR	URS5 UR	URS5 g)Nr�r�r�r�r�r�)	r=�
get_option�assertIsInstancer	r@�_short_opts�
_long_optsr�r�)r�opt1s  r�test_get_option� TestOptionParser.test_get_optionas����{�{�%�%�d�+�����d�F�+�����)�)�D�$�<�8�������;�	�*B�C�������l�3�������I�.r!c�@�URRS5nURRS5nURRS5nURRS5nURXs=L=(a Us=L=(a	 UL5 gs 5 g)Nr�r�r�r�)r=r�rP)rr�opt2�opt3�opt4s     r�test_get_option_equals�'TestOptionParser.test_get_option_equalsisw���{�{�%�%�d�+���{�{�%�%�k�2���{�{�%�%�d�+���{�{�%�%�i�0������4�4��4�4��4�5�4�5r!c��URURRS55 URURRS55 g)Nr�r�)rPr=�
has_optionr#s r�test_has_option� TestOptionParser.test_has_optionps8��������.�.�t�4�5�������.�.�{�;�<r!c�\�URURRS5SL5 URURRS5SL5 URURRS5SL5 URURRS5SL5 URURR	S55 URURR	S55 URURR	S55 URURR	S55 URURR	S55 URURR	S55 g)Nr�r�r�r�r�r�)rPr=r�r\rr#s r�assertTrueremoved�"TestOptionParser.assertTrueremovedts,��������.�.�t�4��<�=�������.�.�{�;�t�C�D�������.�.�t�4��<�=�������.�.�y�9�T�A�B�������/�/��5�6�������/�/��<�=�������/�/��5�6�������/�/�	�:�;�������.�.�t�4�5�������.�.�z�:�;r!c�Z�URRS5 UR5 g)Nr��r=�
remove_optionrr#s r�test_remove_short_opt�&TestOptionParser.test_remove_short_opt�s �����!�!�$�'���� r!c�Z�URRS5 UR5 g)Nr�rr#s r�test_remove_long_opt�%TestOptionParser.test_remove_long_opt�s �����!�!�+�.���� r!c�^�URURRSS[S5 g)N�r�zno such option 'foo')rYr=r�
ValueErrorr#s r�test_remove_nonexistent�(TestOptionParser.test_remove_nonexistent�s&�����$�+�+�3�3�X�t�$�&<�	>r!zRelies on sys.getrefcountT)�cpythonc���S/n[R"U5n[5nURSS5 XlUR5 AUR
U[R"U55 g)N�*�-az	--aaarggh)rb�getrefcountrr��	big_thing�destroyr@)rr$�refcountr=s    r�test_refleak�TestOptionParser.test_refleak�s\���D�	��?�?�9�-��������$��,�$�����������3�?�?�9�#=�>r!r�N)r&r'r(r)rr�r�rr	r
rrrrr�impl_detailr'r*r+r!rr�r�QsY��@�C�>�/�6�=�<�!�!�>�
���4�d�C�?�D�?r!r�c� �\rSrSrSrSrSrg)�TestOptionValuesi�c��grr+r#s rr�TestOptionValues.setUp�r�r!c���[5nUR[U505 URU05 URUSS05 URUS5 SSS.n[US9nUR[U5U5 URX5 URUSS05 URU05 URUS5 URU/5 g)Nr�r�r�r!)r��baz)�defaults)rr@r?�assertNotEqual)r�values�dicts   r�test_basics�TestOptionValues.test_basics�s����������f��r�*������$����F�U�E�N�3����F�B�'��R�(����&������f��t�,�����&����F�U�E�N�3����F�B�'����F�B�'����F�B�'r!r+N)r&r'r(r)rr4r*r+r!rr+r+�s��
�(r!r+c�&�\rSrSrSrSrSrSrg)�TestTypeAliasesi�c�"�[5Ulgr)rr=r#s rr�TestTypeAliases.setUp�s��"�n��r!c��URRSSS9 URURRS5RS5 g)N�-srL�re�string)r=r�r@r�rer#s r�test_str_aliases_string�'TestTypeAliases.test_str_aliases_string�s>�������t�%��0�������/�/��5�:�:�H�Er!c�P�URRS[S9 URURR	S5R
S5 URRS[S9 URURR	S5R
S5 g)Nr;r<r=�-xr�)r=r�rLr@r�rer�r#s r�test_type_object� TestTypeAliases.test_type_object�sz�������t�#��.�������/�/��5�:�:�H�E������t�#��.�������/�/��5�:�:�E�Br!r�N)r&r'r(r)rr>rBr*r+r!rr7r7�s��%�F�Cr!r7r��<ii�Q)�s�m�h�dc���USR5(a[U5$[USS5[US-$![[4a [SU<SU<35ef=f)N���zoption z: invalid duration: )�isdigitr��_time_unitsr�
IndexErrorr��option�opt�values   r�_check_durationrR�sk��>���9������u�:���u�S�b�z�?�[��r��%;�;�;���
�#�>��14�e�<�>�	>�>�s�"A�A�$A$c�t�\rSrSr\R
S-r\R"\R5r\\S'Sr	g)�DurationOptioni�)�durationrUr+N)
r&r'r(r)r	�TYPES�copy�TYPE_CHECKERrRr*r+r!rrTrT�s.���L�L�=�(�E��9�9�V�0�0�1�L�.�L��r!rTc�2�\rSrSrSrSrSrSrSrSr	g)	�TestDefaultValuesi�c��[5UlURRSSSS9 URRSSSS9 URRS	S
SS9 URRS
S
S9 URRSSS9 URRS5 URRSSS9 SSSSSSS.Ulg)Nr�r�T��defaultr�r�r�)r�r�r��%�rer]z-mr<r;r��-tz-u)r��nrFrE�t�u)rr=r��expectedr#s rr�TestDefaultValues.setUp�s���"�n��������t�[�$��?������t�Y�Y��?������t�%���<������t�%��0������t�U��3������t�$������t�T��2�%)�!�#�$�#�#�&��
r!c�l�URURR5UR5 gr)r@r=�get_default_valuesrdr#s r�test_basic_defaults�%TestDefaultValues.test_basic_defaults�s#��������7�7�9�4�=�=�Ir!c���URRSSS9 URRSSS.5 UR	URR5UR5 g)Nr!i����)rarF)r=�set_defaultsrd�updater@rgr#s r�test_mixed_defaults_post�*TestDefaultValues.test_mixed_defaults_post�sQ����� � �2�� �.��
�
���2�D�1�2�������7�7�9�4�=�=�Ir!c�R�URRSSS9 URRSSS9 URRS5 URR	SSS.5 URURR
5UR5 URRS5 URRSSS9 URR	SS05 URURR
5UR5 g)	N�barf�blah)�x�yrA�frobr\z-yrs)r=rkr�rdrlr@rgrr#s r�test_mixed_defaults_pre�)TestDefaultValues.test_mixed_defaults_pre�s������ � �6�V� �4������t�V��4������t�$��
�
���6��7�8�������7�7�9�4�=�=�I����!�!�$�'������t�T��2��
�
���c�4�[�)�������7�7�9�4�=�=�Ir!c�N�[URlURRSSSS9 URRSSSS9 URR	SS9 UR
R
SS	S
S.5 URURR5UR
5 URRS5 UR
R
SSSS.5 URURR5UR
5 g)
Nr�rUi,r_z-e�6m�42)raihr!)rH�eraF)
rTr=�option_classr�rkrdrlr@rg�set_process_default_valuesr#s r�test_process_default�&TestDefaultValues.test_process_default�s���#1���� ������t�*�c��B������t�*�d��C���� � �4� �(��
�
���3�S�r�:�;�������7�7�9�4�=�=�I����.�.�u�5��
�
���3�T��=�>�������7�7�9�4�=�=�Ir!)rdr=N)
r&r'r(r)rrhrmrur}r*r+r!rrZrZ�s��&� J�J�
J�
Jr!rZc�0�\rSrSrSrSrSrSrSrSr	g)	�TestProgNamei	zQ
Test that %prog expands to the right thing in usage, version,
and help strings.
c�D�URUR5U5 gr)r@�	get_usage�rr=�expected_usages   r�assertUsage�TestProgName.assertUsages������)�)�+�^�<r!c�D�URUR5U5 gr)r@�get_version)rr=�expected_versions   r�
assertVersion�TestProgName.assertVersions������+�+�-�/?�@r!c�t�[RSSn[RR	SSS5[RS'[SSS9nSnUR
X#5 URUS	5 URUUS
-S-5 U[RSS&g!U[RSS&f=f)Nr�r�zbaz.pyrz	%prog ...z	%prog 1.2)�versionzUsage: baz.py ...
z
baz.py 1.2�
zlOptions:
  --version   show program's version number and exit
  -h, --help  show this help message and exit
)	rb�argv�os�path�joinrr�r�ru)r�	save_argvr=r�s    r�test_default_progname�"TestProgName.test_default_prognames����H�H�Q�K�	�	$��'�'�,�,�u�e�X�>�C�H�H�Q�K�!�+�{�C�F�2�N����V�4����v�|�4��O�O�F�*�T�1�N�N�
O�$�C�H�H�Q�K��)�C�H�H�Q�K�s�A9B"�"B7c���[SSSS9nURS5 URS5 SnURX5 URUS5 UR	XS	-5 g)
N�thingy�	%prog 0.1z
%prog arg arg)�progr�r}�-h�	--versionzUsage: thingy arg arg
z
thingy 0.1r�)rrr�r�rur�s   r�test_custom_progname�!TestProgName.test_custom_progname'sf���8�&1�$3�5��	���T�"����[�)�2������0����6�<�0������ 5�6r!r+N)
r&r'r(r)�__doc__r�r�r�r�r*r+r!rr�r�	s���
=�A�$�"	7r!r�c�P�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
Srg
)�TestExpandDefaultsi3c��[SS9UlSUlSUlURS-UlURS-Ulg)N�test)r�zXUsage: test [options]

Options:
  -h, --help            show this help message and exit
z"read from FILE [default: %default]z:  -f FILE, --file=FILE  read from FILE [default: foo.txt]
z7  -f FILE, --file=FILE  read from FILE [default: none]
)rr=�help_prefix�	file_help�expected_help_file�expected_help_noner#s rr�TestExpandDefaults.setUp4sO��"��/������>���"&�"2�"2�I�#J���"&�"2�"2�F�#G��r!c��URRSSSURS9 URURUR5 g)N�-f�--file�foo.txt�r]�help)r=r�r�rur�r#s r�test_option_default�&TestExpandDefaults.test_option_defaultBsA�������t�X�'0�$(�N�N�	�	4�	
������T�%<�%<�=r!c���URRSSURS9 URRSS5 UR	URUR
5 g)Nr�r��r��filer�)r=r�r��set_defaultrur�r#s r�test_parser_default_1�(TestExpandDefaults.test_parser_default_1HsP�������t�X�$(�N�N�	�	4�������	�2�������T�%<�%<�=r!c���URRSSURS9 URRSS9 UR	URUR
5 g)Nr�r�r�r��r�)r=r�r�rkrur�r#s r�test_parser_default_2�(TestExpandDefaults.test_parser_default_2NsQ�������t�X�$(�N�N�	�	4���� � �i� �0�������T�%<�%<�=r!c��URRSSURS9 URURUR5 g)Nr�r�r��r=r�r�rur�r#s r�test_no_default�"TestExpandDefaults.test_no_defaultTs<�������t�X�$(�N�N�	�	4�������T�%<�%<�=r!c��URRSSSURS9 URURUR5 g)Nr�r�r�r�r#s r�test_default_none_1�&TestExpandDefaults.test_default_none_1YsA�������t�X�'+�$(�N�N�	�	4�	
������T�%<�%<�=r!c���URRSSURS9 URRSS9 UR	URUR
5 g)Nr�r�r�r�)r=r�r�rkrur�r#s r�test_default_none_2�&TestExpandDefaults.test_default_none_2_sQ�������t�X�$(�N�N�	�	4���� � �d� �+�������T�%<�%<�=r!c���URRSSSS9 URRSS9 URS-nUR	URU5 g)N�-pz--probz1blow up with probability PROB [default: %default]r�g�?)�probzF  -p PROB, --prob=PROB  blow up with probability PROB [default: 0.25]
)r=r�rkr�ru�rrss  r�test_float_default�%TestExpandDefaults.test_float_defaultes_��������(�D�	�	F�	
��� � �d� �+��(�(�U�V�
�������]�3r!c��URRSSSSS9 SURRlUR	URUR
5 g)Nr�r�r�z#read from FILE [default: *DEFAULT*]r�z	*DEFAULT*)r=r��	formatter�default_tagrur�r#s r�test_alt_expand�"TestExpandDefaults.test_alt_expandnsP�������t�X�'0�$I�	�	K�-8������)�������T�%<�%<�=r!c���URRSSSSS9 SURRlURS-nURURU5 g)Nr�r�r�zread from %default filer�z0  -f FILE, --file=FILE  read from %default file
)r=r�r�r�r�rur�s  r�test_no_expand�!TestExpandDefaults.test_no_expandus]�������t�X�'0�$=�	�	?�-1������)��(�(�?�@�
�������]�3r!)r�r�r�r�r=N)r&r'r(r)rr�r�r�r�r�r�r�r�r�r*r+r!rr�r�3s5��G�>�>�>�>�
>�>�4�>�4r!r�c��\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrSrSrSrSrSrSrSrSrSrSrSrSrSrSrSrg)�TestStandardi�c�h�[SSS9[SSSSS9[S	S
S9/n[[US9Ulg)
Nr"r=r<r��--boor��boo�rer��--foo�append�r��r}�option_list�rr-r
r=�rrEs  rr�TestStandard.setUp�s?���t�(�3��t�W�5�u�E��w�x�8�:��/�^�;B�D��r!c�*�URS/S5 g)Nr"z-a option requires 1 argument�r_r#s r�test_required_value� TestStandard.test_required_value�s�����d�V�%D�Er!c�,�URSS/S5 g)Nr��5xz&option -b: invalid integer value: '5x'r�r#s r�test_invalid_integer�!TestStandard.test_invalid_integer�s�����d�D�\�E�	Gr!c�*�URS/S5 g)Nz--boo13zno such option: --boo13r�r#s r�test_no_such_option� TestStandard.test_no_such_option�s�����i�[�*C�Dr!c�*�URS/S5 g)Nz--boo=x5z)option --boo: invalid integer value: 'x5'r�r#s r�test_long_invalid_integer�&TestStandard.test_long_invalid_integer�s�����j�\�H�	Jr!c�2�UR/SSSS./5 g)N��ar�r��rHr#s r�
test_empty�TestStandard.test_empty�s�����2�T�$�t�D�b�Ir!c�:�UR/SQSSSS/S./5 g)N)r"r�z
--foo=blahz--foo=r�rqr�r�r#s r�"test_shortopt_empty_longopt_append�/TestStandard.test_shortopt_empty_longopt_append�s$�����=�!#�D�&�"��F��	r!c�:�UR/SQSS/SQS./5 g)N)r�r�r�r�z--foo=x)r�r�rrr�r�r#s r�test_long_option_append�$TestStandard.test_long_option_append�s&�����C�!%�#'�#3�5��		r!c�4�URS/SSSS./5 g)Nz-abc�bcr�r�r#s r�test_option_argument_joined�(TestStandard.test_option_argument_joined�s!�����F�8�!%�d�4�@��	r!c�6�URSS/SSSS./5 g)Nr"�34r�r�r#s r�test_option_argument_split�'TestStandard.test_option_argument_split�s#�����D�$�<�!%�d�4�@��	r!c�4�URS/SSSS./5 g)Nz-b34�"r�r�r#s r�#test_option_argument_joined_integer�0TestStandard.test_option_argument_joined_integer�s!�����F�8�!%�b��>��	r!c�6�URSS/SSSS./5 g)Nr��-5���r�r�r#s r�+test_option_argument_split_negative_integer�8TestStandard.test_option_argument_split_negative_integer�s#�����D�$�<�!%�b��>��	r!c�4�URS/SSSS./5 g)Nz--boo=13�
r�r�r#s r� test_long_option_argument_joined�-TestStandard.test_long_option_argument_joined�s!�����J�<�!%�b��>��	r!c�6�URSS/SSSS./5 g)Nr��111�or�r�r#s r�test_long_option_argument_split�,TestStandard.test_long_option_argument_split�s$�����G�U�+�!%�c�$�?��	r!c�8�URSS/SSS/S./5 g)N�	--foo=bar�-axyz�xyzr�r�r�r#s r�test_long_option_short_option�*TestStandard.test_long_option_short_option�s&�����K��1�!&�t�U�G�D��	r!c�8�URSS/SSS/S./5 g)N�--f=barrrr�r�r�r#s r�test_abbrev_long_option�$TestStandard.test_abbrev_long_option�s&�����I�w�/�!&�t�U�G�D��	r!c��URR/5upURR5nUR[	U5[	U55 gr)r=r>rgr@r?)rrErBr0s    r�
test_defaults�TestStandard.test_defaults�sB���+�+�0�0��4����;�;�1�1�3������h���g��7r!c�b�URRSSSSS9 URS/S5 g)N�--fozr�r=r��r�rer�rz%ambiguous option: --f (--foo, --foz?)�r=r�r_r#s r�test_ambiguous_option�"TestStandard.test_ambiguous_option�s8�������w�w�$,�5�	�	:����i�[�D�	Fr!c�8�UR/SQSSS/S./5 g)N)r"rr�r�rr�r�r�r#s r� test_short_and_long_option_split�-TestStandard.test_short_and_long_option_split�s"�����8�!&�t�U�G�D��	r!c�:�UR/SQSSSS/S./5 g)N)rr��123r�r/�{r�r/r�r�r#s r�*test_short_option_split_long_option_append�7TestStandard.test_short_option_split_long_option_append�s$�����E�!%�c�5�%�.�I��	r!c�8�UR/SQSSSS.S/5 g)N)r"r�r�r�r�r�r�r#s r�*test_short_option_split_one_positional_arg�7TestStandard.test_short_option_split_one_positional_arg�s"�����/�!&�t�D�A�!�7�	$r!c�n�UR/SQSSSS.SS/5 UR/SQSSS/S./5 g)N)r"r�r�r�r�r�r�r�)r"r�r�r�r�r#s r�$test_short_option_consumes_separator�1TestStandard.test_short_option_consumes_separator�sF�����5�!%�d�4�@�!�5�>�	+�	
���7�!%�d�E�7�C��	r!c�<�UR/SQSSSS.SS/54 g)N)�-abr�r�r�r�r�r�r�r�r#s r�&test_short_option_joined_and_separator�3TestStandard.test_short_option_joined_and_separator�s*�����8�!$�T�$�?�#�U�+�	-�	.r!c�:�UR/SQSSS/S.S/5 g)N)r6�-r�r�r�r�r�r:r�r#s r�"test_hyphen_becomes_positional_arg�/TestStandard.test_hyphen_becomes_positional_arg�s$�����7�!$�T�5�'�B��5�	"r!c�:�UR/SQSSSS/S./5 g)N)�-b3r��5rr�r/�r�r/r�r�r#s r�test_no_append_versus_append�)TestStandard.test_no_append_versus_append�s$�����J�!%�a����G��	r!c�6�URSS/SSSS./5 g)Nr"r>r�r�r#s r�&test_option_consumes_optionlike_string�3TestStandard.test_option_consumes_optionlike_strings#�����D�%�=�!&�t�D�A��	r!c�^�URRSSS9 URS/S5 g)Nr`r�r�z-testzno such option: -er$r#s r�#test_combined_single_invalid_option�0TestStandard.test_combined_single_invalid_options.�������t�L��9����g�Y�1�	3r!r�N) r&r'r(r)rr�r�r�r�r�r�r�r�rrr	r
rrrrr%r(r-r0r3r7r;rArDrGr*r+r!rr�r��s���D�F�G�E�J�J��
��
�
�
�
�
�
�
�
8�
F��
�
$�
�.�
"�
�
�
3r!r�c�2�\rSrSrSrSrSrSrSrSr	g)	�TestBoolic�R�[SSSSSS9[SSS	SS
9/n[US9Ulg)Nr�r�r�r�r��r�r�r]r�r�r�r��r�)rrr=r�s  rr�TestBool.setUpsB���t�*�&2�$-�')�	+�
�t�(�&3�$-�/�0��#��9��r!c�.�UR/SS0/5 g)Nr�r�r�r#s r�test_bool_default�TestBool.test_bool_defaults�����2�%�r�?��	r!c�n�URS/SS0/5upURURSL5 g)Nr�r�rF�rHrPr��rrErBs   r�test_bool_false�TestBool.test_bool_falses9���,�,�d�V�.7��^�-/�1���	
������5�0�1r!c�n�URS/SS0/5upURURSL5 g)Nr�r�r�TrSrTs   r�test_bool_true�TestBool.test_bool_true#s9���,�,�d�V�.7��^�-/�1���	
������4�/�0r!c�2�UR/SQSS0/5 g)N)z-qvqr�r�r�r�r�r#s r�test_bool_flicker_on_and_off�%TestBool.test_bool_flicker_on_and_off)s�����/�%�q�>��	r!r�N)
r&r'r(r)rrPrUrXr[r*r+r!rrJrJs��
:��
2�1�r!rJc�,�\rSrSrSrSrSrSrSrg)�
TestChoicei.c�f�[[S9UlURRSSSS/SQS9 g)Nr|�-cr�r�)�one�two�three)r�rer�r��r-r
r=r�r#s rr�TestChoice.setUp/s2��.�^�D��������t�G�(�$,�6M�	�	Or!c�4�UR/SQSS0S/5 g)N)r`rarr�rarr�r#s r�test_valid_choice�TestChoice.test_valid_choice4s �����/�$�e�,�!�7�	$r!c�,�UR/SQS5 g)N)r`�four�abczEoption -c: invalid choice: 'four' (choose from 'one', 'two', 'three')r�r#s r�test_invalid_choice�TestChoice.test_invalid_choice9s�����2�C�	Dr!c���URRSS/SQS9 URRS5nURURS5 URUR
S5 g)Nr�z	--default)rj�five�six)r�r�r�)r=r�r�r@rer��rrPs  r�test_add_choice_option�!TestChoice.test_add_choice_option>s]�������t�[�'>�	�	@��k�k�$�$�T�*��������8�,�������W�-r!r�N)	r&r'r(r)rrgrlrrr*r+r!rr^r^.s��O�
$�
D�
.r!r^c�h�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrSrSrg)�	TestCountiEc��[[S9Ul[SSSS9UlURRUR5 URRSSSS9 URRS	S
SSSS
9 g)Nr|r�r�r�r�r�r�r�r�r��store_constr�r�r�r�)r-r
r=r�v_optr�r#s rr�TestCount.setUpFsp��.�^�D��� ��g�I�F��
������t�z�z�*������{��Y��G������t�Y�&3�)�1�	�	Nr!c�.�UR/SS0/5 g)Nr�r�r#s rr��TestCount.test_emptyNs�����2�	�4�0�"�5r!c�0�URS/SS0/5 g)Nr�r�r�r�r#s r�test_count_one�TestCount.test_count_oneQs�����D�6�I�q�>�2�6r!c�0�URS/SS0/5 g)N�-vvvr��r�r#s r�test_count_three�TestCount.test_count_threeTs�����F�8�i��^�R�8r!c�2�UR/SQSS0/5 g)N)r�r�r�r�r�r�r#s r�test_count_three_apart� TestCount.test_count_three_apartWs�����-�	�1�~�r�Br!c�2�URSS/SS0/5 g)Nr��--verbose=2r�r�r�r#s r�test_count_override_amount�$TestCount.test_count_override_amountZs�����F�M�2�Y��N�B�Gr!c�2�UR/SQSS0/5 g)N)r�r�r�r�rr�r#s r�test_count_override_quiet�#TestCount.test_count_override_quiet]s�����8�9�a�.�"�Mr!c�2�UR/SQSS0/5 g)N�r�r�r�r�r�r�r�r#s r�test_count_overriding�TestCount.test_count_overriding`s�����>�%�q�>�2�	/r!c�4�UR/SQSS0S/5 g)N�r��3r�r�r�r�r�r#s r�test_count_interspersed_args�&TestCount.test_count_interspersed_argsds�����1�%�q�>��5�	"r!c�j�URR5 UR/SQSS0SS/5 g)Nr�r�rr�r�)r=�disable_interspersed_argsrHr#s r�test_count_no_interspersed_args�)TestCount.test_count_no_interspersed_argsis1�����-�-�/����1�%�q�>���;�	(r!c�,�URSS/S5 g)Nz-q3r�zno such option: -3r�r#s r�test_count_no_such_option�#TestCount.test_count_no_such_optionos�����e�T�]�,@�Ar!c�,�URSS/S5 g)Nz	--quiet=3r�z$--quiet option does not take a valuer�r#s r�test_count_option_no_value�$TestCount.test_count_option_no_valuers�����k�4�0�C�	Er!c�f�URRSS5 UR/SS0/5 g)Nr�r�r=r�rHr#s r�test_count_with_default�!TestCount.test_count_with_defaultvs,�������	�1�-����2�	�!�}�b�1r!c�j�URRSS5 UR/SQSS0/5 g)Nr�rr�r�r�r#s r�test_count_overriding_default�'TestCount.test_count_overriding_defaultzs0�������	�1�-����>�%�q�>�2�	/r!)r=ryN)r&r'r(r)rr�r~r�r�r�r�r�r�r�r�r�r�r�r*r+r!rruruEsN��N�6�7�9�C�H�N�/�"�
(�B�E�2�/r!ruc�2�\rSrSrSrSrSrSrSrSr	g)	�TestMultipleArgsic	�d�[[S9UlURRSSSSSSS9 g)	Nr|r��--pointr�r��float�point�r�r�rer�rdr#s rr�TestMultipleArgs.setUp�s3��.�^�D��������t�Y�&-�Q�W�7�	�	Tr!c�6�UR/SQSS0SS/5 g)N)r�r��1�2.5z-4.3rr�)g�?�@g333333�r�rr�r#s r�test_nargs_with_positional_args�0TestMultipleArgs.test_nargs_with_positional_args�s#�����C�#�%5�6�!�5�>�	+r!c�4�UR/SQSS0S/5 g)N)r��-1r�z-0rr�)g�r�g�rr�r#s r�test_nargs_long_opt�$TestMultipleArgs.test_nargs_long_opt�s!�����@�#�%6�7�!�7�	$r!c�,�UR/SQS5 g)N)r��1.0�2x�3.5z-option -p: invalid floating-point value: '2x'r�r#s r�test_nargs_invalid_float_value�/TestMultipleArgs.test_nargs_invalid_float_value�s�����7�B�	Cr!c�,�UR/SQS5 g)N)r�r�r�z#--point option requires 3 argumentsr�r#s r�test_nargs_required_values�+TestMultipleArgs.test_nargs_required_values�s�����6�B�	Dr!r�N)
r&r'r(r)rr�r�r�r�r*r+r!rr�r�s��T�
+�
$�
C�
Dr!r�c�2�\rSrSrSrSrSrSrSrSr	g)	�TestMultipleArgsAppendi�c	���[[S9UlURRSSSSSSS9 URRS	S
SSS
SS9 URRSSSSSS9 g)Nr|r�r�r�r�r�r�r�r�r�r�r�r�r��-z�--zero�append_const�rrrxrdr#s rr�TestMultipleArgsAppend.setUp�sx��.�^�D��������t�Y�w�a�$+�'�	�	;������t�W�X�Q�$)��	�	7������t�X�n�$)��	�	9r!c�:�UR/SQSSS/S.S/5 g)N)r��4�-3rqr�r��666)����)r�i��r�r�rqr�r#s r�test_nargs_append�(TestMultipleArgsAppend.test_nargs_append�s%�����I�%)�7�H�2E�F�"�8�	%r!c�*�URS/S5 g)Nz-f4,3z-f option requires 2 argumentsr�r#s r�!test_nargs_append_required_values�8TestMultipleArgsAppend.test_nargs_append_required_values�s�����g�Y�=�	?r!c�6�URSS/SS/S./5 g)Nz--foo=3r��r�r�r�r�r#s r�test_nargs_append_simple�/TestMultipleArgsAppend.test_nargs_append_simple�s$�����I�s�+�%)�&��:��	r!c�8�UR/SQS/SQS./5 g)N)r�r�r�r�r�)r�r�r�r�r�r#s r�test_nargs_append_const�.TestMultipleArgsAppend.test_nargs_append_const�s�����>�%)�1I�J��	r!r�N)
r&r'r(r)rr�r�r�r�r*r+r!rr�r��s��9�%�
?��
r!r�c� �\rSrSrSrSrSrg)�TestVersioni�c�N�[[SS9Ul[RSSn[
RR[
RSS5[RS'URS/S5 U[RSS&g!U[RSS&f=f)Nr�)r}r�r�r�rr�zbar 0.1
)
r-r
r=rbr�r�r�r��curdirrj)rr�s  r�test_version�TestVersion.test_version�su��.�^�7B�D����H�H�Q�K�	�	$��'�'�,�,�r�y�y�%��?�C�H�H�Q�K����{�m�[�9�#�C�H�H�Q�K��)�C�H�H�Q�K�s�AB�B$c�N�[[S9UlURS/S5 g)Nr|r�zno such option: --version)r-r
r=r_r#s r�test_no_version�TestVersion.test_no_version�s#��.�^�D������k�]�8�	:r!r�N)r&r'r(r)r�r�r*r+r!rr�r��s��$�:r!r�c�*�\rSrSrSrSrSrSrSrg)�TestConflictingDefaultsi�z4Conflicting default values: the last one should win.c	�6�[[SSSSS9/S9Ulg)Nr�r�r�r�rLrM)rrr=r#s rr�TestConflictingDefaults.setUp�s#��"���\�	�1�M�0O�P��r!c�f�URRSSSSS9 UR/SS0/5 g)Nr�r�r�rrL�r=r�rHr#s r�test_conflict_default�-TestConflictingDefaults.test_conflict_default�s8�������t�M�	�'(�	�	*����2�	�1�~�r�2r!c�f�URRSSSSS9 UR/SS0/5 g)Nr�r�r�rLr�r#s r�test_conflict_default_none�2TestConflictingDefaults.test_conflict_default_none�s9�������t�M�	�'+�	�	-����2�	�4�0�"�5r!r�N)	r&r'r(r)r�rr�r�r*r+r!rr�r��s��>�P�3�
6r!r�c�8�\rSrSrSrSrSrSrSrSr	Sr
g	)
�TestOptionGroupi�c�(�[[S9Ulgr{r~r#s rr�TestOptionGroup.setUp�r�r!c��[URS5nURRU5 URSSSS9 UR	S/SS0/5 g)N�Spamz--spamr�zspam spam spam spam�r�r��spamr�)rr=�add_option_groupr�rH�r�groups  r�!test_option_group_create_instance�1TestOptionGroup.test_option_group_create_instance�sV���D�K�K��0�����$�$�U�+�
����,�3�	�	5����H�:���{�B�7r!c�R�URURRSS5 g)Nz!not an OptionGroup instance: None�rnr=r�r#s r�test_add_group_no_group�'TestOptionGroup.test_add_group_no_group�s"�����T�[�[�9�9�@�$�	Hr!c�T�URURRSSS5 gr�rr#s r� test_add_group_invalid_arguments�0TestOptionGroup.test_add_group_invalid_arguments�s#�����T�[�[�9�9�0�$��	>r!c��[URS5n[5UlURURRU4S[
S5 g)Nr�z"invalid OptionGroup (wrong parser))rr=rrYr�rr�s  r�test_add_group_wrong_parser�+TestOptionGroup.test_add_group_wrong_parser�sB���D�K�K��0��#�~������$�+�+�6�6���$�$�&J�	Lr!c���URRSSS9nURS5 URSSS9 UR	URRS5U5 g)NzGroup 2zSome more options)�description�Baconz--baconr�r<)r=r��	set_titler�rP�get_option_groupr�s  r�test_group_manipulate�%TestOptionGroup.test_group_manipulate�s]�����,�,�Y�9L�-�N��
���� �
������/�������4�4�Y�?��Gr!r�N)r&r'r(r)rr�rrrrr*r+r!rr�r��s#��9�8�H�>�L�Hr!r�c�H�\rSrSrSrSr"SS\5rSrSr	Sr
S	rg
)�TestExtendAddTypesi�c��[[URS9UlURR	SSSSS9 URR	SSSSS9 g)	N)r}r{r"r=r�r�r�r�r�)r-r
�MyOptionr=r�r#s rr�TestExtendAddTypes.setUp�sN��.�^�<@�M�M�K��������t�T��s��C������t�X�F���Hr!c�`�[RR[R5(a%[R
"[R5 g[RR
[R5(a%[R"[R5 ggr)r�r��isdirr�TESTFN�rmdir�isfile�unlinkr#s r�tearDown�TestExtendAddTypes.tearDowns]��
�7�7�=�=��)�)�*�*��H�H�Y�%�%�&�
�W�W�^�^�I�,�,�
-�
-��I�I�i�&�&�'�.r!c�z�\rSrSrSr\RS-r\R"\R5r\\S'Sr	g)�TestExtendAddTypes.MyOptionic���[RRU5(d[SU-5e[RR	U5(d[SU-5eU$)N�%s: file does not exist�%s: not a regular file)r�r��existsrrrNs   r�
check_file�&TestExtendAddTypes.MyOption.check_filesO���7�7�>�>�%�(�(�&�'@�5�'H�I�I��W�W�^�^�E�*�*�&�'?�%�'G�H�H��Lr!r�r�r+N)
r&r'r(r)r$r	rVrWrXr*r+r!rrrs5��	����y�(���y�y��!4�!4�5��)��V�r!rc��[R"[R5 URS[RS/[RSS./5 g)Nr��-afoor�)r�r�)r�create_empty_filerrHr#s r�test_filetype_ok�#TestExtendAddTypes.test_filetype_oksD���#�#�I�$4�$4�5����H�i�&6�&6��@�$-�$4�$4�5�A��	r!c�l�URS[RS/S[R-5 g)Nr�r'r!)r_rrr#s r�test_filetype_noexist�(TestExtendAddTypes.test_filetype_noexists0�����h�	�(8�(8�'�B�6�&�-�-�.�	/r!c��[R"[R5 UR	S[RS/S[R-5 g)Nr�r'r")r��mkdirrrr_r#s r�test_filetype_notfile�(TestExtendAddTypes.test_filetype_notfilesB��
����!�!�"����h�	�(8�(8�'�B�5�&�-�-�.�	/r!r�N)r&r'r(r)rrr	rr)r,r0r*r+r!rrr�s(��I�(�
*�F�
*��/�
/r!rc�<�\rSrSrSr"SS\5rSrSrSr	g)	�TestExtendAddActionsi$c�H�URSSSSSS9/n[US9Ulg)Nr"�--apple�extendr=�appler#rM)rrr=r�s  rr�TestExtendAddActions.setUp%s1���=�=��y��&.�W�!�>�?��"�w�7��r!c�t�\rSrSr\R
S-r\RS-r\RS-rSrSr	g)�TestExtendAddActions.MyOptioni*)r6c	��US:Xa3URS5nURU/5RU5 g[R"XX#XdU5 g)Nr6�,)�split�ensure_valuer6r	�take_action)rr�r�rPrQr2r=�lvalues        rr?�)TestExtendAddActions.MyOption.take_action/sJ����!����S�)���#�#�D�"�-�4�4�V�<��"�"�4��F�#)�+r!r+N)
r&r'r(r)r	�ACTIONS�
STORE_ACTIONS�
TYPED_ACTIONSr?r*r+r!rrr:*s5���.�.�;�.���,�,�{�:�
��,�,�{�:�
�	+r!rc�6�URSS/S/SQ0/5 g)Nz	-afoo,barz--apple=blahr7)r�r�rqr�r#s r�test_extend_add_action�+TestExtendAddActions.test_extend_add_action7s#�����K��8�#�%;�<��	r!c�6�UR/SQS/SQ0/5 g)N)r"r�z-abarz--apple=x,yr7)r�r�rrrsr�r#s r�test_extend_add_action_normal�2TestExtendAddActions.test_extend_add_action_normal<s�����@�#�%=�>��	r!r�N)
r&r'r(r)rr	rrFrIr*r+r!rr3r3$s��8�
+�F�+��
r!r3c�,�\rSrSrSrSrSrSrSrg)�TestCallbackiCc
�|�[SSSURS9[SSSURSSS9/n[US	9Ulg)
NrAr�r�r�r�r=�filename)r�r�rer�rM)r�process_optrr=r�s  rr�TestCallback.setUpDsQ���t�#�&0�(,�(8�(8�:��t�'�&0�(,�(8�(8�$,�$.�0�		1��#�w�7��r!c���US:Xa�URURS/5 URUR/5 URX@RL5 URUSL5 UR[UR5SS05 SURlgUS:Xa�URURS/5 URURS/5 URX@RL5 URUS5 UR[UR5SSS.5 [URURU5 gURSU-5 g)	NrArNr!r�r�r��rNrrz!Unknown option %r in process_opt.)r@rrrPr=r?r2rr�setattrr�rK�rrOrPrQ�parser_s     rrO�TestCallback.process_optQs"���$�;����V�/�/�$��8����V�.�.��3��O�O�G�{�{�2�3��O�O�E�T�M�*����T�'�.�.�1�J��3E�F�!�G�N�N��
�H�_����V�/�/�$��8����V�.�.��
�;��O�O�G�{�{�2�3����U�E�*����T�'�.�.�1��2�3N�O��G�N�N�F�K�K��7��I�I�9�C�?�@r!c�4�URSS/SSS./5 g)NrAz
--file=foor�r!rRr�r#s r�
test_callback�TestCallback.test_callbackes"�����D�,�/�(-�B�7��	r!c	��[[S9nURS5 URSSSSSSS	9 S
nUR	X5 g)Nr|r�r`z--testr�c��grr+r+r!r�<lambda>�1TestCallback.test_callback_help.<locals>.<lambda>qs��4r!r=r�)r�r�rer�z%Options:
  -t TEST, --test=TEST  foo
)rr
rr�ru)rr=rss   r�test_callback_help�TestCallback.test_callback_helpjsP���N�3�����T�"����$���#/�h�$�	�	&�9�
�����.r!r�N)	r&r'r(r)rrOrXr^r*r+r!rrLrLCs��8�A�(�
/r!rLc�&�\rSrSrSrSrSrSrg)�TestCallbackExtraArgsiyc�b�[SSSURS[4SS/S9/n[US9Ulg)	Nr�r�r�r�r=�points)r�r�r�rer�r]rM)r�
process_tupler�rr=r�s  rr�TestCallbackExtraArgs.setUpzs<���t�Y�z�(,�(:�(:�./��X�H�$,�b�:�;��#�w�7��r!c�\�URUS5 URU[L5 US:XaURUS5 OUS:XaURUS5 [[	XcRS555n[
URUR5RU5 g)Nr�r�z1,2,3r��4,5,6r<)
r@rPr�r��mapr=�getattrr2r�r�)rrOrPrQrU�lenres       rrd�#TestCallbackExtraArgs.process_tuple�s�������a� �������$��$�;����U�G�,�
�I�
����U�G�,��c�$���C� 0�1�2���������,�3�3�E�:r!c�6�UR/SQSSS/0/5 g)N)z-p1,2,3r�rgrc�r�r�r�)r�r@�r�r#s r�test_callback_extra_args�.TestCallbackExtraArgs.test_callback_extra_args�s#�����:�$�w��&8�9��	r!r�N)r&r'r(r)rrdror*r+r!rrarays��8�
;�r!rac�,�\rSrSrSrSrSrSrSrg)�TestCallbackMeddleArgsi�c
��[SSS5Vs/sH"n[[U5SURSS9PM$ nn[	US9Ulgs snf)NrJi����r��things�r�r�r�rM)�rangerrL�	process_nrr=)rrrrEs   rr�TestCallbackMeddleArgs.setUp�sW��"�"�b�"�-�/�-�q��s�1�v�j�(,���X�G�-�	�/�#�w�7����/s�)A
c�F�[USS5nURn[U5U:aURSXR4-5 URRUR/5nUR[USU55 URRU5 USU2	g)Nr�z$Expected %d arguments for %s option.r)
r��rargsrjrKr2r>r�r�r��largs)rrOrPrQrUr�rzr�s        rrw� TestCallbackMeddleArgs.process_n�s����C���G����
�
���u�:����I�I�<��|�K�L��~�~�*�*�6�;�;��;�����E�%��%�.�)�*��
�
���U�#��!�E�'�Nr!c�:�UR/SQSSS/0SS/5 g)N)r�r�r�r�r/�quxrtr)r�r/r~r�r�r�r#s r�test_callback_meddle_args�0TestCallbackMeddleArgs.test_callback_meddle_args�s(�����C�$�x�1F�&G�H��q�6�	#r!c�6�UR/SQSS/0S/5 g)N)z-2r�r�rt)r�r�r�r�r#s r�#test_callback_meddle_args_separator�:TestCallbackMeddleArgs.test_callback_meddle_args_separator�s"�����.�$�}�o�6��3�	 r!r�N)	r&r'r(r)rrwrr�r*r+r!rrrrr�s��8�	�#�
 r!rrc�&�\rSrSrSrSrSrSrg)�TestCallbackManyArgsi�c
��[SSSSURSS9[SSSS	URS
S9/n[US9Ulg)Nr"r5r�r�r=)r�r�r�rer��--bobr�r�rM)r�process_manyrr=r�s  rr�TestCallbackManyArgs.setUp�sP���t�Y�z��(,�(9�(9��J��t�W�Z�q�(,�(9�(9��G�H��#�w�7��r!c���US:XaURUS5 gUS:XaURUS5 gUS:XaURUS5 gUS:XaURUS5 gg)	Nr"r�r5)�ding�dongr�rmr�)if���r!r�r@rTs     rr��!TestCallbackManyArgs.process_many�se���$�;����U�N�3�
�I�
����U�$4�5�
�D�[����U�I�.�
�G�^����U�M�2�r!c�4�UR/SQSSS./5 g)N)r"r�r�r5r�r�r�r��2r�r�z-666ry�0)r7�bobr�r#s r�test_many_args�#TestCallbackManyArgs.test_many_args�s"�����!�&*�$�7��		r!r�N)r&r'r(r)rr�r�r*r+r!rr�r��s��8�3�r!r�c�&�\rSrSrSrSrSrSrg)�TestCallbackCheckAbbrevi�c�l�[5UlURRSSURS9 g)N�	--foo-barr�r�)rr=r��check_abbrevr#s rr�TestCallbackCheckAbbrev.setUp�s/��"�n��������{�:�(,�(9�(9�	�	;r!c�(�URUS5 g)Nr�r��rrOrPrQr=s     rr��$TestCallbackCheckAbbrev.check_abbrev�s������k�*r!c�,�URS/0/5 g)Nr�r�r#s r�test_abbrev_callback_expansion�6TestCallbackCheckAbbrev.test_abbrev_callback_expansion�s�����G�9�b�"�-r!r�N)r&r'r(r)rr�r�r*r+r!rr�r��s��;�
+�.r!r�c�>�\rSrSrSrSrSrSrSrSr	Sr
S	rg
)�TestCallbackVarArgsi�c
��[SSSSS9[SSSS	9[S
SSURS
S9/n[[US9Ulg)Nr"r�r�r�)rer�r�r�r�r�r�r`�
--callbackr��crur�)r�
variable_argsr-r
r=r�s  rr�TestCallbackVarArgs.setUp�sR���t�%�q�s�C��t�L�s�C��t�\�*�(,�(:�(:��F�G��/�^�;B�D��r!c�N�URUSL5 /nURnU(a\USnUSSS:Xa[U5S:�d!USSS:Xa[U5S:�a
USS:waOURU5 US	U(aM\[	UR
URU5 g)Nrr�r�r�r:)rPrzrjr�rSr2r�)rrOrPrQr=rz�args       rr��!TestCallbackVarArgs.variable_args�s��������
�&����������(�C��R�a��D��S��X��\��R�a��C��C��H�q�L�S��V�s�]�����S�!��!�H��e�	��
�
�v�{�{�E�2r!c�:�UR/SQSSSS/S./5 g)N)z-a3rr�r�r�)r�rr�r��r�r�r�r�r#s r�test_variable_args�&TestCallbackVarArgs.test_variable_args�s$�����D�!(�t�5�%�.�I��	r!c�<�UR/SQSS/SQS.S/5 g)N)r`�37r��xxxr��helloT)r�r�r�r�r�r�r#s r�%test_consume_separator_stop_at_option�9TestCallbackVarArgs.test_consume_separator_stop_at_option�s(�����C�!%�!%�!4�6�$�9�		&r!c�<�UR/SQSS/SQS.S/5 g)N)r�r`r�r:r�)r�r:r�r�r�r�r#s r�%test_positional_arg_and_variable_args�9TestCallbackVarArgs.test_positional_arg_and_variable_args�s(�����=�!%�!%� 3�5�$�9�		&r!c�8�UR/SQSSS/S./5 g)N)r`r�r�Tr�r�r�r#s r�test_stop_at_option�'TestCallbackVarArgs.test_stop_at_option�s"�����.�!%�D��w�?��	r!c�,�UR/SQS5 g)N)r`r�rr"zno such option: -5r�r#s r�test_stop_at_invalid_option�/TestCallbackVarArgs.test_stop_at_invalid_options�����4�6J�Kr!r�N)r&r'r(r)rr�r�r�r�r�r�r*r+r!rr�r��s'��D�3��
&�&��
Lr!r�c� �\rSrSrSrSrSrg)�ConflictBasei	c�F�[SSSSSS9/n[[US9Ulg)Nr�r�r�r�zincrement verbosity�r�r�r�r�r�r�s  rr�ConflictBase.setUp
s1���t�[��$-�4I�K�L��.�^�;B�D��r!c�&�SURlg)Nr�)r2�show_versionr�s     rr��ConflictBase.show_versions��%&��
�
�"r!r�N)r&r'r(r)rr�r*r+r!rr�r�	s
��D�'r!r�c�0�\rSrSrSrSrSrSrSrSr	g)	�TestConflictiz9Use the default conflict resolution for Optik 1.2: error.c���URUSSURSS.[S5nURURS5 URUR
S5 g)N)r�r�r��show version�r�r�r�z5option -v/--version: conflicting option string(s): -vz conflicting option string(s): -vz-v/--version)rYr�rr@r2�	option_id)rrSrWs   r�assertTrueconflict_error�%TestConflict.assertTrueconflict_errors`������%�:�59�5F�5F�1?�(A�
 �C�E��	
������"D�E��������7r!c�N�URURR5 gr)r�r=r�r#s r�test_conflict_error� TestConflict.test_conflict_error s���%�%�d�k�k�&<�&<�=r!c�f�[URS5nURUR5 g)NzGroup 1)rr=r�r�r�s  r�test_conflict_error_group�&TestConflict.test_conflict_error_group#s&���D�K�K��3���%�%�e�&6�&6�7r!c�^�URURRSS[S5 g)Nrz'invalid conflict_resolution value 'foo')rYr=�set_conflict_handlerrr#s r�test_no_such_conflict_handler�*TestConflict.test_no_such_conflict_handler's(������K�K�,�,�h���A�	Cr!r+N)
r&r'r(r)r�r�r�r�r�r*r+r!rr�r�s��C�	8�>�8�Cr!r�c�8�\rSrSrSrSrSrSrSrSr	Sr
g	)
�TestConflictResolvei-c��[RU5 URRS5 URR	SSSUR
SS9 g)N�resolver�r�r�r�r�)r�rr=r�r�r�r#s rr�TestConflictResolve.setUp.sK�����4� ����(�(��3������t�[��(,�(9�(9��	�	Pr!c��URRS5nURRS5nURRS5nURXL5 URXL5 URURS/5 URUR
S/5 URURS/5 URUR
/5 URURS/5 g)Nr�r�r�)r=r�rPr@rr)rry�verbose_opt�version_opts    r�test_conflict_resolve�)TestConflictResolve.test_conflict_resolve4s������&�&�t�,���k�k�,�,�[�9���k�k�,�,�[�9������,�-�����0�1�����)�)�K�=�9�����0�0�4�&�9�����/�/�+��?�����0�0�"�5�����/�/�+��?r!c�*�URS/S5 g)Nr�z}Options:
  --verbose      increment verbosity
  -h, --help     show this help message and exit
  -v, --version  show version
�rjr#s r�test_conflict_resolve_help�.TestConflictResolve.test_conflict_resolve_helpAs�����4�&�#�	r!c�2�URS/SSS./5 g)Nr�r��r�r�r�r#s r�test_conflict_resolve_short_opt�3TestConflictResolve.test_conflict_resolve_short_optIs�����D�6�'+�Q�?��	r!c�0�URS/SS0/5 g)Nr�r�r�r�r#s r�test_conflict_resolve_long_opt�2TestConflictResolve.test_conflict_resolve_long_optNs�����K�=�%�q�>��	r!c�4�URSS/SSS./5 g)Nr�r�r�r�r�r#s r�test_conflict_resolve_long_opts�3TestConflictResolve.test_conflict_resolve_long_optsSs"�����K��5�'(�!�<��	r!r+N)r&r'r(r)rr�r�r�r�r�r*r+r!rr�r�-s"��P�@���
�
r!r�c�,�\rSrSrSrSrSrSrSrg)�TestConflictOverrideiXc	���[[S9UlURRS5 URR	SSSSSS9 URR	SSS	S
SSS9 g)
Nr|r�r��	--dry-runr��dry_runzdon't do anythingr�rwr!zdry run mode)r�r�r�r�)r-r
r=r�r�r#s rr�TestConflictOverride.setUpYsj��.�^�D������(�(��3������t�[�&2��$7�	�	9�	
�����{�D�&3�2�I�$2�	�	4r!c��URRS5nURURS/5 URURS/5 g)Nr�r�)r=r�r@rrrqs  r�test_conflict_override_opts�0TestConflictOverride.test_conflict_override_optscsB���k�k�$�$�[�1��������4�&�1�������+��7r!c�*�URS/S5 g)Nr�zXOptions:
  -h, --help     show this help message and exit
  -n, --dry-run  dry run mode
r�r#s r�test_conflict_override_help�0TestConflictOverride.test_conflict_override_helphs�����4�&�#�	r!c�0�URS/SS0/5 g)Nr�r�r!r�r#s r�test_conflict_override_args�0TestConflictOverride.test_conflict_override_argsos�����D�6�%�r�?��	r!r�N)	r&r'r(r)rr�r�r�r*r+r!rr�r�Xs��4�8�
�r!r�aSUsage: 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
aSUsage: 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
aWUsage
=====
  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
a}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
a~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
c�V�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rg)�TestHelpi�c�0�URS5Ulg)N�P)�make_parserr=r#s rr�TestHelp.setUp�s���&�&�r�*��r!c
���[SSSSSS9[SSS	S
SSS9[S
SSSSS9/n[R"5n[U5US'[	US9sSSS5 $!,(df   g=f)Nr"r=r��APPLEzthrow APPLEs at basket)rer��metavarr�r�r�r�r��NUMzeshout "boo!" NUM times (in order to frighten away all the evil spirits that cause trouble and mayhem)r�r�r�z*store FOO in the foo list for later fooing)r�rer�r��COLUMNSrM)rr�EnvironmentVarGuardrLr-)r�columnsrE�envs    rr�TestHelp.make_parser�s����8�#� '�.F�
H���g�E�� %�N�
O�

���x�e�I�
K�
�� �
*�
*�
,�� ��\�C�	�N�+��@�-�
,�
,�s�A�
A,c�
�[RSSn[RR	SS5[RS'URS/U5 U[RSS&g!U[RSS&f=f)Nr�zbar.pyrr�)rbr�r�r�r�rj)rr^r�s   r�assertHelpEquals�TestHelp.assertHelpEquals�s]���H�H�Q�K�	�	$��'�'�,�,�u�h�7�C�H�H�Q�K����t�f�o�6�#�C�H�H�Q�K��)�C�H�H�Q�K�s�AA-�-Bc�.�UR[5 gr)r�_expected_help_basicr#s r�	test_help�TestHelp.test_help�s�����2�3r!c�d�URRS5 UR[5 g)NzUsage: %prog [options])r=�	set_usagerrr#s r�test_help_old_usage�TestHelp.test_help_old_usage�s$�������6�7����2�3r!c�d�SURRlUR[5 g)Nr)r=r��short_firstr�_expected_help_long_opts_firstr#s r�test_help_long_opts_first�"TestHelp.test_help_long_opts_first�s#��,-������)����<�=r!c���[R"5nSUS'[5URlUR[5 SSS5 g!,(df   g=f)N�80r	)rr
r
r=r�r�_expected_help_title_formatter)rrs  r�test_help_title_formatter�"TestHelp.test_help_title_formatter�sC��
�
*�
*�
,��!�C�	�N�$7�$9�D�K�K�!��!�!�"@�A�-�
,�
,�s�4A�
A!c��URS5UlUR[5 URS5UlUR[5 g)NrDr)rr=r�_expected_help_short_lines�_expected_very_help_short_linesr#s r�test_wrap_columns�TestHelp.test_wrap_columns�sF���&�&�r�*������8�9��&�&�q�)������=�>r!c��[[S9UlURRSSSS9 SnUR	U5 g)Nr|r"r��olé!r�uKOptions:
  -h, --help  show this help message and exit
  -a          olé!
)r-r
r=r�r�r�expects  r�test_help_unicode�TestHelp.test_help_unicodes>��.�^�D��������t�L�{��K���
	
���f�%r!c�P�[[SS9UlSnURU5 g)Nr))r}ru>olé!

Options:
  -h, --help  show this help message and exit
)r-r
r=rr*s  r�test_help_unicode_description�&TestHelp.test_help_unicode_descriptions+��.�^�;F�H�����	
���f�%r!c�0�URRS5 [URSS5nURSSSS9 URR	U5 SnURU5 S	URlURUS
-5 g)Nz`This is the program description for %prog.  %prog has an option group as well as single options.zDangerous OptionszZCaution: use of these options is at your own risk.  It is believed that some of them bite.z-gr�z
Group option.r�aTUsage: 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.
z Please report bugs to /dev/null.z"
Please report bugs to /dev/null.
)r=�set_descriptionrr�r�r�epilog)rr�r+s   r�test_help_description_groups�%TestHelp.test_help_description_groupss������#�#�
9�	:���K�K�,�
5�6��	����l���I����$�$�U�+���(	
���f�%�?��������f�'M�M�Nr!r�N)r&r'r(r)rrrrrrr!r&r,r/r4r*r+r!rrr�s<��+�A�*$�4�4�>�B�?�&�	&�#Or!rc� �\rSrSrSrSrSrg)�TestMatchAbbrevi?c
�F�UR[SSSSSS.5S5 g)N�--f)r"r��--fier9)r@rr#s r�test_match_abbrev�!TestMatchAbbrev.test_match_abbrev@s/������u�15�15�15�/3�(5�6�
�	 r!c�P�SnSSSS.nUR[X4S[S5 g)Nr9)r"r�r:z,ambiguous option: --f (--fie, --foo, --foz?))rYrr)rrE�wordmaps   r�test_match_abbrev_error�'TestMatchAbbrev.test_match_abbrev_errorHs1���� �4�$�?������A�<���J�	Lr!r+N)r&r'r(r)r;r?r*r+r!rr7r7?s
�� �Lr!r7c�,�\rSrSrSrSrSrSrSrg)�TestParseNumberiPc��[5UlURRS[S9 URRS[S9 g)Nr�r<�-l)r-r=r�r�r#s rr�TestParseNumber.setUpQs:��.�0��������t�#��.������t�#��.r!c	���UR[S[40[[R
"S55 UR[S[40[[R
"S55 g)Nr�z!invalid literal for int().*: '?'?�0xOoopsz*invalid literal for int().*: s?'?0xOoops'?)rYrr�rrN�compiler#s r�test_parse_num_fail�#TestParseNumber.test_parse_num_failVsX�������S�	�2���J�J�;�<�	>�	
�����C�(�"���J�J�D�E�	Gr!c��UR[S[5S5 UR[S[5S5 UR[S[5S5 UR[S[5S5 UR[S	[5S
5 UR[S[5S5 g)Nr�r�0x10��0XA�
�010��0b11r��0b)r@rr�r#s r�test_parse_num_ok�!TestParseNumber.test_parse_num_ok`s�������C��-�q�1�����F�C�0�"�5�����E�3�/��4�����E�3�/��3�����F�C�0�!�4�����D�#�.��2r!c���UR/SQSSS./5 UR/SQSSS./5 URS/S	5 URS
/S5 URSS
/S5 g)N)r�ryrD�0x20r!� )ra�l)r��0b0101z-l010r@rQz-n008z'option -n: invalid integer value: '008'z-l0b0123z*option -l: invalid integer value: '0b0123'rD�0x12xz)option -l: invalid integer value: '0x12x')rHr_r#s r�test_numeric_options�$TestParseNumber.test_numeric_optionshs|�����5�"$�4�1�2�	7����4�"#�!�-�r�	3����g�Y�F�	H����j�\�I�	K����d�G�_�H�	Jr!r�N)	r&r'r(r)rrIrTr\r*r+r!rrBrBPs��/�
G�3�
Jr!rBc��\rSrSrSrSrg)�MiscTestCaseiuc�@�1Skn[R"U[US9 g)N>�
NO_DEFAULT�
check_builtin�AmbiguousOptionError)�not_exported)r�check__all__�optparse)rrds  r�test__all__�MiscTestCase.test__all__vs��N�����T�8�,�Gr!r+N)r&r'r(r)rgr*r+r!rr_r_us��Hr!r_c��\rSrSrSrSrg)�TestTranslationsi{c�.�UR[5 gr)�assertMsgidsEqualrfr#s r�test_translations�"TestTranslations.test_translations|s�����x�(r!r+N)r&r'r(r)rmr*r+r!rrjrj{s��)r!rj�__main__z--snapshot-update)Orbr�rNrW�unittest�iorr�r�test.supportr�test.support.i18n_helperrrrfrr	r
rrr
rrrrrrr�	Exceptionrr-�TestCaser:rxr�r+r7rLrRrTrZr�r�r�rJr^rur�r�r�r�r�rr3rLrarrr�r�r�r�r�r�r�rrr r$r%rr7rBr_rjr&rjr�r3�mainr+r!r�<module>rws����	�	�����"�W��.�.�.�.�#��
N�y�
N�2�|�2�M%�x� � �M%�jJ#�x�J#�XL?�x�L?�^(�x�(�*C�h�C� �r��h�@��>�/�V�/�
0J��0J�f'7�8�'7�TI4��I4�\H3�8�H3�T!�x�!�F.��.�.8/��8/�tD�x�D�2�X��::�(�:�$6�h�6� H�h�H�D(/��(/�V�8��>3/�8�3/�l�H��2 �X� �:�8��2
.�h�
.�0L�(�0L�j'�8�'�C�<�C�4)�,�)�V�8��<	��	"��"����#��BtO�x�tO�nL�h�L�""J�h�"J�JH�8�$�$�H�)�+�)�
�z��
�3�8�8�}�q��S�X�X�a�[�,?�?�$�X�.�������M�M�O�r!

Youez - 2016 - github.com/yon3zu
LinuXploit