Your IP : 216.73.216.213
�
��f8 c @ s� d d l m Z m Z m Z m Z d d l Z d d l Z e � Z Gd d � d e j � Z
d d � Z e d k r~ e � n d S( i ( u verboseu run_doctestu run_unittestu EnvironmentVarGuardNc B s� | Ee Z d Z d d � Z d d � Z d d � Z d d � Z d d
� Z d d � Z d
d � Z d d � Z
d d � Z d d � Z d d � Z
d S( u GetoptTestsc C s, t � | _ d | j k r( | j d =n d S( Nu POSIXLY_CORRECT( u EnvironmentVarGuardu env( u self( ( u5 /opt/alt/python33/lib64/python3.3/test/test_getopt.pyu setUp s u GetoptTests.setUpc C s | j j � | ` d S( N( u envu __exit__( u self( ( u5 /opt/alt/python33/lib64/python3.3/test/test_getopt.pyu tearDown s
u GetoptTests.tearDownc O s | j t j | | � d S( N( u assertRaisesu getoptu GetoptError( u selfu argsu kwargs( ( u5 /opt/alt/python33/lib64/python3.3/test/test_getopt.pyu assertError s u GetoptTests.assertErrorc C sL | j t j d d � � | j t j d d � � | j t j d d � d S( Nu au a:u b( u
assertTrueu getoptu
short_has_argu assertFalseu assertError( u self( ( u5 /opt/alt/python33/lib64/python3.3/test/test_getopt.pyu test_short_has_arg s u GetoptTests.test_short_has_argc C s� t j d d g � \ } } | j | � | j | d � t j d d g � \ } } | j | � | j | d � t j d d g � \ } } | j | � | j | d � | j t j d d g � | j t j d g � | j t j d d d g � d S( Nu abcu abc=u abcdu defu abcde( u getoptu
long_has_argsu
assertTrueu assertEqualu assertFalseu assertError( u selfu has_argu option( ( u5 /opt/alt/python33/lib64/python3.3/test/test_getopt.pyu test_long_has_args s
u GetoptTests.test_long_has_argsc C sL t j g d d g � \ } } | j | d g � | j | g � t j g d d g � \ } } | j | d g � | j | g � t j g d d d g � \ } } | j | d
g � | j | g � t j g d d d d g � \ } } | j | d g � | j | d g � | j t j g d d g � | j t j g d d g � d S( Nu au -au u a1u a:u 1u 2( u -au ( u -au 1( u -au 1( u -au 1( u getoptu do_shortsu assertEqualu assertError( u selfu optsu args( ( u5 /opt/alt/python33/lib64/python3.3/test/test_getopt.pyu test_do_shorts. s !$u GetoptTests.test_do_shortsc C s� t j g d d g g � \ } } | j | d g � | j | g � t j g d d g g � \ } } | j | d g � | j | g � t j g d d g g � \ } } | j | d g � | j | g � t j g d d d d
g g � \ } } | j | d g � | j | g � t j g d d d
g g � \ } } | j | d g � | j | g � | j t j g d d g g � | j t j g d d g g � d S( Nu abcu --abcu u abc=1u abc=u 1u abcd=u --abcdu abu abcdu foo=42u foo-baru foo=u --foou 42( u --abcu ( u --abcu 1( u --abcdu 1( u --abcu ( u --foou 42( u getoptu do_longsu assertEqualu assertError( u selfu optsu args( ( u5 /opt/alt/python33/lib64/python3.3/test/test_getopt.pyu
test_do_longsF s"