From f29032eac65c076e54e000966602c35239de15ac Mon Sep 17 00:00:00 2001 From: Alexey Boriskin Date: Sun, 19 Aug 2012 01:04:08 +0400 Subject: [PATCH] Fixed #18793: Duplicate test test_head_no_get in generic_views.base --- tests/regressiontests/generic_views/base.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tests/regressiontests/generic_views/base.py b/tests/regressiontests/generic_views/base.py index a61b01be0bf56..439b0d73273c4 100644 --- a/tests/regressiontests/generic_views/base.py +++ b/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