#NEWLINE# def test_11_GET_mixed_args( self ) : #NEWLINE# #INDENT# params = { #NEWLINE# #INDENT# '1' : 'this is a string' , #NEWLINE# '2' : 'this is omg' , #NEWLINE# 'wtf' : 'pants' , #NEWLINE# 'nowai' : 'nopants' , #NEWLINE# #UNINDENT# } #NEWLINE# url = ( '%s%s?%s' % ( self . host , 'jsonrpc.strangeSafeEcho' , '' . join ( [ ( '%s=%s&' % ( k , urllib_parse . quote ( v ) ) ) for ( k , v ) in params . items ( ) ] ) . rstrip ( '&' ) ) ) #NEWLINE# resp = loads ( urllib_request . urlopen ( url ) . read ( ) . decode ( 'utf-8' ) ) #NEWLINE# self . assertEquals ( resp [ 'result' ] [ ( - 1 ) ] , 'Default' ) #NEWLINE# self . assertEquals ( resp [ 'result' ] [ 1 ] , 'this is omg' ) #NEWLINE# self . assertEquals ( resp [ 'result' ] [ 0 ] , 'this is a string' ) #NEWLINE# self . assert_ ( ( 'error' not in resp ) )