aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tests/methods.py
diff options
context:
space:
mode:
authormarkotibold2011-06-25 17:31:04 +0200
committermarkotibold2011-06-25 17:31:04 +0200
commit209ee829031ff69ddfe275ee0e41c173f5dec2f4 (patch)
treefc347393d7567217cef459fbf863c2ad6962d414 /djangorestframework/tests/methods.py
parentbae21b14c93e458014107a007e894e93a181bd0e (diff)
parentd3024ff18150e41190da76592d948b724727ca74 (diff)
downloaddjango-rest-framework-209ee829031ff69ddfe275ee0e41c173f5dec2f4.tar.bz2
Merge with 4b1ee62051cce8fa9b83ac740d7262ad4a55494b
Diffstat (limited to 'djangorestframework/tests/methods.py')
-rw-r--r--djangorestframework/tests/methods.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/djangorestframework/tests/methods.py b/djangorestframework/tests/methods.py
index d8f0d919..c3a3a28d 100644
--- a/djangorestframework/tests/methods.py
+++ b/djangorestframework/tests/methods.py
@@ -24,3 +24,9 @@ class TestMethodOverloading(TestCase):
view = RequestMixin()
view.request = self.req.post('/', {view._METHOD_PARAM: 'DELETE'})
self.assertEqual(view.method, 'DELETE')
+
+ def test_HEAD_is_a_valid_method(self):
+ """HEAD requests identified"""
+ view = RequestMixin()
+ view.request = self.req.head('/')
+ self.assertEqual(view.method, 'HEAD')