#NEWLINE# def test_get_instance( self ) : #NEWLINE# #INDENT# with self . request_info . request ( self . _create_environ ( 'https' , 'machine:8080' , '/foo' , 'bar=baz' ) , self . _create_server_configuration ( 'default' , '1' ) ) as request_id : #NEWLINE# #INDENT# instance = object ( ) #NEWLINE# self . request_info . set_request_instance ( request_id , instance ) #NEWLINE# self . _assert_request_id ( request_id ) #NEWLINE# self . assertEqual ( instance , self . request_info . get_instance ( request_id ) )