Skip to content

Commit

Permalink
Fixed #18793: Duplicate test test_head_no_get in generic_views.base
Browse files Browse the repository at this point in the history
  • Loading branch information
uruz committed Aug 18, 2012
1 parent de3ad8b commit f29032e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/regressiontests/generic_views/base.py
Expand Up @@ -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
Expand Down

0 comments on commit f29032e

Please sign in to comment.