#NEWLINE# def testAddArguments_IsConfigFilePathArg( self ) : #NEWLINE# #INDENT# self . assertRaises ( ValueError , self . add_arg , 'c' , action = 'store_false' , is_config_file = True ) #NEWLINE# self . add_arg ( '-c' , '--config' , is_config_file = True ) #NEWLINE# self . add_arg ( '--x' , required = True ) #NEWLINE# config_file = tempfile . NamedTemporaryFile ( mode = 'w' , delete = True ) #NEWLINE# config_file . write ( 'x=bla' ) #NEWLINE# config_file . flush ( ) #NEWLINE# ns = self . parse ( args = ( '-c %s' % config_file . name ) ) #NEWLINE# self . assertEqual ( self . x , 'bla' )