From 8b72b7bf92ac6f0d021fcee5286505e75e075eff Mon Sep 17 00:00:00 2001 From: Sébastien Piquemal Date: Tue, 24 Jan 2012 19:16:41 +0200 Subject: corrected request example --- djangorestframework/tests/request.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'djangorestframework/tests/request.py') diff --git a/djangorestframework/tests/request.py b/djangorestframework/tests/request.py index 7f3a485e..6a0eae21 100644 --- a/djangorestframework/tests/request.py +++ b/djangorestframework/tests/request.py @@ -66,8 +66,6 @@ class TestMethodOverloading(RequestTestCase): class TestContentParsing(RequestTestCase): - #TODO: is there any reason why many test cases documented as testing a PUT, - # in fact use a POST !? def tearDown(self): request_class.parsers = () @@ -115,7 +113,7 @@ class TestContentParsing(RequestTestCase): content = 'qwerty' content_type = 'text/plain' request_class.parsers = (PlainTextParser,) - request = self.build_request('post', '/', content, content_type=content_type) + request = self.build_request('put', '/', content, content_type=content_type) self.assertEqual(request.DATA, content) def test_overloaded_behaviour_allows_content_tunnelling(self): -- cgit v1.2.3