def test_options_for_post_view(self):
        request = self.rf.options('/')
        view = PostOnlyView.as_view()
        response = view(request)
        self._assert_allows(response, 'POST')
Test that a view implementing POST allows POST.
dataset/ETHPy150Open django/django/tests/generic_views/test_base.py/ViewTest.test_options_for_post_view