Changeset 1503
- Timestamp:
- 12/09/06 18:02:49
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/cherrypy-2.x/cherrypy/filters/xmlrpcfilter.py
r1027 r1503 176 176 # Try again with the new path 177 177 path = x.path 178 except cherrypy.NotFound: 179 # http://www.cherrypy.org/ticket/533 180 # if a method is not found, an xmlrpclib.Fault should be returned 181 # raising an exception here will do that; see 182 # cherrypy.lib.xmlrpc.on_error 183 raise Exception('method "%s" is not supported' 184 % cherrypy.request.rpcMethod) 178 185 179 186 # See xmlrpclib documentation branches/cherrypy-2.x/cherrypy/test/test_xmlrpc_filter.py
r1017 r1503 97 97 else: 98 98 self.fail("Expected xmlrpclib.Fault") 99 100 # http://www.cherrypy.org/ticket/533 101 # if a method is not found, an xmlrpclib.Fault should be raised 102 try: 103 proxy.non_method() 104 except Exception, x: 105 self.assertEqual(x.__class__, xmlrpclib.Fault) 106 self.assertEqual(x.faultString, 'method "non_method" is not supported') 107 else: 108 self.fail("Expected xmlrpclib.Fault") 99 109 100 110

