#NEWLINE# def _GetNewLogUrlAndVerify( self , request_dict , log_body , content_type , content_md5 ) : #NEWLINE# #INDENT# 'Get a new client log url based on "request_dict" and verify\n    the URL can be PUT using the specified content-type and md5.\n    ' #NEWLINE# response_dict = self . _SendRequest ( 'new_client_log_url' , self . _cookie , request_dict ) #NEWLINE# url = response_dict [ 'client_log_put_url' ] #NEWLINE# headers = { #NEWLINE# #INDENT# 'Content-Type' : content_type , #NEWLINE# #UNINDENT# } #NEWLINE# if ( content_md5 is not None ) : #NEWLINE# #INDENT# headers [ 'Content-MD5' ] = content_md5 #NEWLINE# #UNINDENT# response = self . _RunAsync ( self . _tester . http_client . fetch , url , method = 'PUT' , body = log_body , follow_redirects = False , headers = headers ) #NEWLINE# self . assertEqual ( 200 , response . code )