Hi,
I'm trying to doctest this tiny function:
def call():
"""
Function used for xmlrpc calls
>>> request.args.append("http:
//mydomain/application/controller/call/xmlrpc")
>>> call()
True
"""
session.forget()
return service()
But it fails before doing the comparison:
Function call [failed]
**********************************************************************
Line 3, in
/home/vcarro/Downloads/web2py/applications/rvx//controllers/reviews.py
in call.__doc__
Failed example:
call()
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest
/home/vcarro/Downloads/web2py/applications/rvx//controllers/reviews.py in
call.__doc__[0]>", line 1, in <module>
call()
File
"/home/vcarro/Downloads/web2py/applications/rvx/controllers/reviews.py",
line 31, in call
return service()
File "/home/vcarro/Downloads/web2py/gluon/tools.py", line 5132, in
__call__
raise HTTP(404, "Not Found")
HTTP: 404 NOT FOUND
Ideas to doctest this function?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.