#NEWLINE# def assertDesiredUrl( self , url , base , params ) : #NEWLINE# #INDENT# self . assertEqual ( len ( url . splitlines ( ) ) , 1 , 'Expects only 1 line' ) #NEWLINE# self . assertTrue ( url . startswith ( base ) , 'URL mismatch' ) #NEWLINE# url = url . strip ( ) #NEWLINE# self . assertEqual ( parse_qs ( urlparse ( params ) . query ) , params )