'It should be possible to use the view by directly instantiating it
without going through .as_view() (#21564).'

def test_direct_instantiation(self):

    view = PostOnlyView()
    response = view.dispatch(self.rf.head('/'))
    self.assertEqual(response.status_code, 405)
