#NEWLINE# def generate_random_request( match = 'some' , url_template = 'http://localhost/?q=%s' ) : #NEWLINE# #INDENT# request = fudge . Fake ( ) #NEWLINE# request . has_attr ( META = { #NEWLINE# #INDENT# 'HTTP_REFERER' : ( url_template % match ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# fudge . clear_calls ( ) #NEWLINE# return match