When using wsgiref.util.setup_testing_defaults()
to set up a WSGI environ
is it possible to set the wsgi.input
value so that one can test HTTP POST requests?
Investigating the wsgi.input
value created by setup_testing_defaults()
shows that it's a wsgi.validate.InputWrapper
object with read
, readline
, readlines
, input
, close
, and __iter__
methods, but no write methods.
Edit:
I'm working on Python 2.6.1