summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Boriskin <sun.void@gmail.com>2012-08-19 01:04:08 +0400
committerAlexey Boriskin <sun.void@gmail.com>2012-08-19 01:04:08 +0400
commitf29032eac65c076e54e000966602c35239de15ac (patch)
tree7c098260af81ae5c803c526829a9315f0cae353e
parentde3ad8bb2d14ccf878121b96e6e0359dd8b1f9d5 (diff)
Fixed #18793: Duplicate test test_head_no_get in generic_views.base
-rw-r--r--tests/regressiontests/generic_views/base.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/regressiontests/generic_views/base.py b/tests/regressiontests/generic_views/base.py
index a61b01be0b..439b0d7327 100644
--- a/tests/regressiontests/generic_views/base.py
+++ b/tests/regressiontests/generic_views/base.py
@@ -173,15 +173,6 @@ class ViewTest(unittest.TestCase):
"""
self.assertTrue(DecoratedDispatchView.as_view().is_decorated)
- def test_head_no_get(self):
- """
- Test that a view class with no get responds to a HEAD request with HTTP
- 405.
- """
- request = self.rf.head('/')
- view = PostOnlyView.as_view()
- self.assertEqual(405, view(request).status_code)
-
def test_options(self):
"""
Test that views respond to HTTP OPTIONS requests with an Allow header