#NEWLINE# def test_call( self ) : #NEWLINE# #INDENT# self . mox . StubOutWithMock ( self . dispatcher , '_server_for_request' ) #NEWLINE# self . mox . StubOutWithMock ( self . dispatcher , '_handle_request' ) #NEWLINE# servr = object ( ) #NEWLINE# environ = { #NEWLINE# #INDENT# 'PATH_INFO' : '/foo' , #NEWLINE# 'QUERY_STRING' : 'bar=baz' , #NEWLINE# #UNINDENT# } #NEWLINE# start_response = object ( ) #NEWLINE# self . dispatcher . _server_for_request ( '/foo' ) . AndReturn ( servr ) #NEWLINE# self . dispatcher . _handle_request ( start_response , start_response , servr ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# self . dispatcher ( environ , start_response ) #NEWLINE# self . mox . VerifyAll ( )