Re: Testing put in django 1.5

2013-05-14 Thread Aaron Cannon
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

Testing put in django 1.5

2013-05-14 Thread o_r
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