I've been playing with doctests for an app I'm working on and I've hit
a snag -- passing data dictionaries in as POST params. Here's what
I'm doing:
class Foo:
"""
>>> response = app.request('/foo', method="POST",
data={"bar":"baz"})
>>> response.status
'200 OK'
"""
def POST(self):
return web.input().bar
This fails for me with an AttributeError for "bar" I've looked at the
request method in the code, and it looks correct to me. Before I file
a bug, am I doing something wrong?
-Justin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---