Turns out I wasn't exactly testing what I thought.   You'll notice
that I haven't changed any of the form fields before I submit in my
example.   That might be a valid test for correctness of the form
handling, but I actually wanted to set some specific values.   When I
set those fields and did a form.submit(), the TypeError went away.

Thanks for the ideas.

- Jeff

On Feb 28, 9:58 am, Ben Bangert <[email protected]> wrote:
> On Feb 26, 2010, at 1:59 PM, jeffro wrote:
>
> > Trying to test a form in pylons and getting the following error when
> > calling form.submit()
>
> > TypeError: You cannot set the body to a unicode value without a
> > charset
>
> > The test code does the following in a class derived from
> > TestController and running under 'python setup.py nosetests'
>
> Looks like you're using the system installed webob/webtest. Can you try 
> upgrading both of those (Especially webob), as this bug might've been fixed 
> in a more recent webob.
>
> Cheers,
> Ben

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to