Try something like the following untested code:
>From djanto.test.client import BOUNDARY, MULTIPART_CONTENT, encode_multipart
...
encoded_data = encode_multipart({'someParameter':'someValue'})
response = self.c.put("/path/to/some/api", data=encoded_data,
content_type=MULTIPART_CO
We are about to upgrade from django 1.3 to 1.5, and we are running into
some problems with some of our tests. This used to work in 1.3:
response=self.c.put("/path/to/some/api",{'someParameter':'someValue'},follow=True),
but it doesn't in 1.5. There is a note about it in the docs that this has
2 matches
Mail list logo