Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #291 from uruz/ticket18793

Fixed #18793: Removed duplicate test_head_no_get in generic_views.base

Thanks uruz.
  • Loading branch information...
commit e94584204215413980680525ee19d120b16e70dc 2 parents e992932 + f29032e
@kmtracey kmtracey 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.