#NEWLINE# def test_merge_user_password_existing( self ) : #NEWLINE# #INDENT# url = 'http://josh:harlow@www.yahoo.com/' #NEWLINE# parsed = misc . parse_uri ( url ) #NEWLINE# existing = { #NEWLINE# #INDENT# 'username' : 'joe' , #NEWLINE# 'password' : 'biggie' , #NEWLINE# #UNINDENT# } #NEWLINE# joined = misc . merge_uri ( parsed , parsed ) #NEWLINE# self . assertEqual ( 'www.yahoo.com' , joined . get ( 'hostname' ) ) #NEWLINE# self . assertEqual ( 'joe' , joined . get ( 'username' ) ) #NEWLINE# self . assertEqual ( 'biggie' , joined . get ( 'password' ) )