from http://docs.djangoproject.com/en/dev/topics/testing/#topics-testing
If you provide content_type (e.g., text/xml for an XML payload), the
contents of data will be sent as-is in the POST request, using
content_type in the HTTP Content-Type header.
... you give post_content_type, this means
Hi all,
I am writing some unit tests using the django.test.client.Client to
send requests to my views. I'm using django 1.0 final
I am having problems when sending a post request though. Here is my
code:
post_content_type = "application/x-www-form-urlencoded"
data = {}
data['username'] = 'test
2 matches
Mail list logo