Permalink
Browse files

Fixed #18793: Duplicate test test_head_no_get in generic_views.base

  • Loading branch information...
1 parent de3ad8b commit f29032eac65c076e54e000966602c35239de15ac @uruz uruz committed Aug 18, 2012
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

0 comments on commit f29032e

Please sign in to comment.