diff options
| author | markotibold | 2011-06-25 17:31:04 +0200 |
|---|---|---|
| committer | markotibold | 2011-06-25 17:31:04 +0200 |
| commit | 209ee829031ff69ddfe275ee0e41c173f5dec2f4 (patch) | |
| tree | fc347393d7567217cef459fbf863c2ad6962d414 /djangorestframework/tests/methods.py | |
| parent | bae21b14c93e458014107a007e894e93a181bd0e (diff) | |
| parent | d3024ff18150e41190da76592d948b724727ca74 (diff) | |
| download | django-rest-framework-209ee829031ff69ddfe275ee0e41c173f5dec2f4.tar.bz2 | |
Merge with 4b1ee62051cce8fa9b83ac740d7262ad4a55494b
Diffstat (limited to 'djangorestframework/tests/methods.py')
| -rw-r--r-- | djangorestframework/tests/methods.py | 6 |
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') |
