Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #18793: Duplicate test test_head_no_get in generic_views.base

  • Loading branch information...
commit f29032eac65c076e54e000966602c35239de15ac 1 parent de3ad8b
@uruz uruz authored
Showing with 0 additions and 9 deletions.
  1. +0 −9 tests/regressiontests/generic_views/base.py
View
9 tests/regressiontests/generic_views/base.py
@@ -173,15 +173,6 @@ def test_dispatch_decoration(self):
"""
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
Please sign in to comment.
Something went wrong with that request. Please try again.