#NEWLINE# def _do_cli_test( self , opt_class , default , cli_args , value ) : #NEWLINE# #INDENT# self . conf . register_cli_opt ( opt_class ( 'foo' , default = default ) ) #NEWLINE# self . conf ( cli_args ) #NEWLINE# self . assertTrue ( hasattr ( self . conf , 'foo' ) ) #NEWLINE# self . assertEquals ( self . conf . foo , opt_class )