#NEWLINE# def testPathMassager( self ) : #NEWLINE# #INDENT# from ploy.config import PathMassager #NEWLINE# self . dummyplugin . massagers . append ( PathMassager ( 'section' , 'value1' ) ) #NEWLINE# self . dummyplugin . massagers . append ( PathMassager ( 'section' , 'value2' ) ) #NEWLINE# contents = StringIO ( '\n' . join ( [ '[section:foo]' , 'value1=foo' , 'value2=/foo' ] ) ) #NEWLINE# config = Config ( contents , path = '/config' , plugins = self . plugins ) . parse ( ) #NEWLINE# assert ( contents [ 'section' ] == { #NEWLINE# #INDENT# 'foo' : { #NEWLINE# #INDENT# 'value1' : '/config/foo' , #NEWLINE# 'value2' : '/foo' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } )