From e73838b6ddcc7b37c03f9eee04fa6e6a283fedb3 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Fri, 25 May 2012 19:03:15 +0200 Subject: Fixed #17371 -- Made the test client more flexible The OPTIONS, PUT and DELETE methods no longer apply arbitrary data encoding (in the query string or in the request body). --- tests/regressiontests/conditional_processing/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/regressiontests/conditional_processing') diff --git a/tests/regressiontests/conditional_processing/models.py b/tests/regressiontests/conditional_processing/models.py index f7f48bc9c8..97aeff5eaa 100644 --- a/tests/regressiontests/conditional_processing/models.py +++ b/tests/regressiontests/conditional_processing/models.py @@ -63,10 +63,10 @@ class ConditionalGet(TestCase): def testIfMatch(self): self.client.defaults['HTTP_IF_MATCH'] = '"%s"' % ETAG - response = self.client.put('/condition/etag/', {'data': ''}) + response = self.client.put('/condition/etag/') self.assertEqual(response.status_code, 200) self.client.defaults['HTTP_IF_MATCH'] = '"%s"' % EXPIRED_ETAG - response = self.client.put('/condition/etag/', {'data': ''}) + response = self.client.put('/condition/etag/') self.assertEqual(response.status_code, 412) def testBothHeaders(self): -- cgit v1.3