#NEWLINE# def test_construct_url_add( self ) : #NEWLINE# #INDENT# request = webapp2 . Request . blank ( '/foo' , POST = { #NEWLINE# #INDENT# 'arg1' : 'value1' , #NEWLINE# 'arg2' : 'value2' , #NEWLINE# #UNINDENT# } ) #NEWLINE# response = webapp2 . Response ( ) #NEWLINE# handler = admin_request_handler . AdminRequestHandler ( request , response ) #NEWLINE# url = handler . _construct_url ( add = { #NEWLINE# #INDENT# 'arg2' : 'new2' , #NEWLINE# 'arg3' : 'new3' , #NEWLINE# #UNINDENT# } ) #NEWLINE# parsed_url = urlparse . urlparse ( url ) #NEWLINE# self . assertEqual ( '/foo' , parsed_url . path ) #NEWLINE# self . assertEqual ( { #NEWLINE# #INDENT# 'arg1' : [ 'value1' ] , #NEWLINE# 'arg2' : [ 'new2' ] , #NEWLINE# 'arg3' : [ 'new3' ] , #NEWLINE# #UNINDENT# } , urlparse . parse_qs ( parsed_url . query ) )