#NEWLINE# def test_options_for_post_view( self ) : #NEWLINE# #INDENT# '\n        Test that a view implementing POST allows POST.\n        ' #NEWLINE# request = self . rf . options ( '/' ) #NEWLINE# view = PostOnlyView . as_view ( ) #NEWLINE# response = view ( self ) #NEWLINE# self . _assert_allows ( response , 'POST' )