#NEWLINE# def test_log_line_parser_query_args_with_slash_delimiter_to_account( self ) : #NEWLINE# #INDENT# p = access_processor . AccessLogProcessor ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# log_line = [ str ( x ) for x in range ( 18 ) ] #NEWLINE# log_line [ 1 ] = 'proxy-server' #NEWLINE# log_line [ 4 ] = '1/Jan/3/4/5/6' #NEWLINE# query = 'prefix=YYYY/MM/DD' #NEWLINE# log_line [ 6 ] = ( '/v1/a?%s' % query ) #NEWLINE# log_line = ( ( 'x' * 16 ) + ' ' . join ( log_line ) ) #NEWLINE# res = p . log_line_parser ( log_line ) #NEWLINE# self . assertEquals ( res [ 'object_name' ] , None ) #NEWLINE# self . assertEquals ( res [ 'container_name' ] , None ) #NEWLINE# self . assertEquals ( res [ 'account' ] , 'a' ) #NEWLINE# self . assertEquals ( res [ 'request' ] , '/v1/a' ) #NEWLINE# self . assertEquals ( res [ 'query' ] , query )