#NEWLINE# def test_method_not_allowed_with_param( self ) : #NEWLINE# #INDENT# for method in HTTP_METHODS : #NEWLINE# #INDENT# if ( method in ( 'GET' , 'PUT' , 'OPTIONS' ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# self . resource_get_with_faulty_put . called = False #NEWLINE# self . simulate_request ( '/get_with_param/bogus_param' , method = method ) #NEWLINE# self . assertFalse ( self . resource_get_with_faulty_put . called ) #NEWLINE# self . assertEqual ( allow_header . srmock . status , falcon . HTTP_405 ) #NEWLINE# headers = self . srmock . headers #NEWLINE# allow_header = ( 'allow' , 'GET, PUT, OPTIONS' ) #NEWLINE# self . assertThat ( headers , Contains ( allow_header ) )