#NEWLINE# def test_with_alias( self ) : #NEWLINE# #INDENT# url = 'http://host:port' #NEWLINE# with temppath ( ) as tpath : #NEWLINE# #INDENT# config = Config ( path = self ) #NEWLINE# section = 'dev.alias' #NEWLINE# config . add_section ( section ) #NEWLINE# config . set ( section , 'url' , url ) #NEWLINE# args = { #NEWLINE# #INDENT# '--alias' : 'dev' , #NEWLINE# '--log' : False , #NEWLINE# '--verbose' : 0 , #NEWLINE# #UNINDENT# } #NEWLINE# client = configure_client ( 'test' , args , config = config ) #NEWLINE# eq_ ( client . url , url )