#NEWLINE# def test_getOption( self , cmd ) : #NEWLINE# #INDENT# ( opt , is_inverse ) = cmd . get_option ( '-f' ) #NEWLINE# assert ( ( opt_bool [ 'name' ] , False ) == ( is_inverse . name , is_inverse ) ) #NEWLINE# ( opt , is_inverse ) = cmd . get_option ( '--rare-bool' ) #NEWLINE# assert ( ( opt_rare [ 'name' ] , False ) == ( opt . name , is_inverse ) ) #NEWLINE# ( opt , is_inverse ) = cmd . get_option ( '--no-flag' ) #NEWLINE# assert ( ( opt_bool [ 'name' ] , True ) == ( opt . name , is_inverse ) ) #NEWLINE# ( opt , is_inverse ) = cmd . get_option ( 'not-there' ) #NEWLINE# assert ( ( None , None ) == ( opt , is_inverse ) ) #NEWLINE# ( opt , is_inverse ) = cmd . get_option ( '--list' ) #NEWLINE# assert ( ( opt_append [ 'name' ] , False ) == ( opt . name , is_inverse ) ) #NEWLINE# ( opt , is_inverse ) = cmd . get_option ( '--choice' ) #NEWLINE# assert ( ( opt_choices_desc [ 'name' ] , False ) == ( opt . name , is_inverse ) ) #NEWLINE# ( opt , is_inverse ) = cmd . get_option ( '--achoice' ) #NEWLINE# assert ( ( opt_choices_nodesc [ 'name' ] , False ) == ( opt . name , is_inverse ) )