Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
#968: cherrypy.test.helper recognizes requests server does not
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
CherryPy  
View profile  
 More options Nov 4, 2:08 pm
From: CherryPy <t...@cherrypy.org>
Date: Wed, 04 Nov 2009 19:08:20 -0000
Local: Wed, Nov 4 2009 2:08 pm
Subject: [CherryPy] #968: cherrypy.test.helper recognizes requests server does not

#968: cherrypy.test.helper recognizes requests server does not
---------------------------+----------------------------------------------- -
 Reporter:  guest          |       Owner:  fumanchu
     Type:  defect         |      Status:  new    
 Priority:  normal         |   Milestone:          
Component:  CherryPy code  |    Keywords:          
---------------------------+----------------------------------------------- -
 I've attached two files. One is a simple xmlrpc server in CherryPy that
 returns ["Hello", "World"]. The other uses cherrypy.test.helper to test
 the server. Although all tests pass, if you actually start the server and
 use xmlrpclib to recreate the test, it does not work:

 {{{
 In [7]: sp = xmlrpclib.ServerProxy('http://localhost:8080')

 In [8]: sp.hello()
 ---------------------------------------------------------------------------
 ProtocolError                             Traceback (most recent call
 last)

 /home/kkinder/Desktop/<ipython console> in <module>()

 /usr/lib/python2.6/xmlrpclib.pyc in __call__(self, *args)
    1197         return _Method(self.__send, "%s.%s" % (self.__name, name))
    1198     def __call__(self, *args):
 -> 1199         return self.__send(self.__name, args)
    1200
    1201 ##

 /usr/lib/python2.6/xmlrpclib.pyc in __request(self, methodname, params)
    1487             self.__handler,
    1488             request,
 -> 1489             verbose=self.__verbose
    1490             )
    1491

 /usr/lib/python2.6/xmlrpclib.pyc in request(self, host, handler,
 request_body, verbose)
    1241                 host + handler,
    1242                 errcode, errmsg,
 -> 1243                 headers
    1244                 )
    1245

 ProtocolError: <ProtocolError for localhost:8080/RPC2: 302 Found>
 }}}

 It's possible that I'm incorrectly using the xmlrpc controller, but if
 that's the case, the unittests should also fail. Does this make sense?

--
Ticket URL: <http://cherrypy.org/ticket/968>
CherryPy <http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google