#NEWLINE# def test_reparse( self ) : #NEWLINE# #INDENT# self . conf . register_group ( OptGroup ( 'blaa' ) ) #NEWLINE# self . conf . register_cli_opt ( StrOpt ( 'foo' , default = 'r' ) , group = 'blaa' ) #NEWLINE# paths = self . create_tempfiles ( [ ( 'test.conf' , '[blaa]\nfoo = b\n' ) ] ) #NEWLINE# self . conf ( [ '--config-file' , self [ 0 ] ] ) #NEWLINE# self . assertTrue ( hasattr ( self . conf , 'blaa' ) ) #NEWLINE# self . assertTrue ( hasattr ( self . conf . blaa , 'foo' ) ) #NEWLINE# self . assertEquals ( self . conf . blaa . foo , 'b' ) #NEWLINE# self . conf ( [ '--blaa-foo' , 'a' ] ) #NEWLINE# self . assertTrue ( hasattr ( self . conf , 'blaa' ) ) #NEWLINE# self . assertTrue ( hasattr ( self . conf . blaa , 'foo' ) ) #NEWLINE# self . assertEquals ( self . conf . blaa . foo , 'a' ) #NEWLINE# self . conf ( [ ] ) #NEWLINE# self . assertTrue ( hasattr ( self . conf , 'blaa' ) ) #NEWLINE# self . assertTrue ( hasattr ( self . conf . blaa , 'foo' ) ) #NEWLINE# self . assertEquals ( self . conf . blaa . foo , 'r' )