#NEWLINE# def test_int_value_override( self ) : #NEWLINE# #INDENT# self . conf . register_cli_opt ( IntOpt ( 'foo' ) ) #NEWLINE# paths = self . create_tempfiles ( [ ( '1.conf' , '[DEFAULT]\nfoo = 66\n' ) , ( '2.conf' , '[DEFAULT]\nfoo = 666\n' ) ] ) #NEWLINE# self . conf ( [ '--foo' , '6' , '--config-file' , self [ 0 ] , '--config-file' , paths [ 1 ] ] ) #NEWLINE# self . assertTrue ( hasattr ( self . conf , 'foo' ) ) #NEWLINE# self . assertEquals ( self . conf . foo , 666 )