#NEWLINE# def test_add_async_request( self ) : #NEWLINE# #INDENT# dummy_environ = object ( ) #NEWLINE# self . mox . StubOutWithMock ( dispatcher . _THREAD_POOL , 'submit' ) #NEWLINE# self . dispatcher . _server_name_to_server [ 'default' ] . build_request_environ ( 'PUT' , '/foo?bar=baz' , [ ( 'Header' , 'Value' ) , ( 'Other' , 'Values' ) ] , 'body' , '1.2.3.4' , 1 ) . AndReturn ( self ) #NEWLINE# dispatcher . _THREAD_POOL . submit ( self . dispatcher . _handle_request , dummy_environ , mox . IgnoreArg ( ) , self . dispatcher . _server_name_to_server [ 'default' ] , None , catch_and_log_exceptions = True ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# self . dispatcher . add_async_request ( 'PUT' , '/foo?bar=baz' , [ ( 'Header' , 'Value' ) , ( 'Other' , 'Values' ) ] , 'body' , '1.2.3.4' ) #NEWLINE# self . mox . VerifyAll ( )