#NEWLINE# def get_request_parameter_document_block( self , param_name , contents ) : #NEWLINE# #INDENT# start_param_document = ( ':type %s:' % param_name ) #NEWLINE# start_index = contents . find ( start_param_document ) #NEWLINE# self . assertNotEqual ( start_index , ( - 1 ) , 'Param is not found in contents' ) #NEWLINE# contents = contents [ start_index : ] #NEWLINE# end_index = contents . find ( ':type' , len ( start_param_document ) ) #NEWLINE# return start_param_document [ : end_index ]