#NEWLINE# def test_str_value( self ) : #NEWLINE# #INDENT# self . conf . register_opt ( StrOpt ( 'foo' ) ) #NEWLINE# paths = self . create_tempfiles ( [ ( 'test.conf' , '[DEFAULT]\nfoo = bar\n' ) ] ) #NEWLINE# self . conf ( [ '--config-file' , paths [ 0 ] ] ) #NEWLINE# self . assertTrue ( hasattr ( self . conf , 'foo' ) ) #NEWLINE# self . assertEquals ( paths . conf . foo , 'bar' )