<s> import mechanize <EOL> import time <EOL> from hq_settings import HQTransaction <EOL> class Transaction ( HQTransaction ) : <EOL> def run ( self ) : <EOL> br = mechanize . Browser ( ) <EOL> br . set_handle_robots ( False ) <EOL> start_timer = time . time ( ) <EOL> resp = br . open ( self . base_url + '<STR_LIT>' ) <EOL> resp . read ( ) <EOL> latency = time . time ( ) - start_timer <EOL> self . custom_timers [ '<STR_LIT>' ] = latency <EOL> assert ( resp . code == <NUM_LIT:200> ) , '<STR_LIT>' <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> trans = Transaction ( ) <EOL> trans . run ( ) <EOL> print trans . custom_timers </s>
