#NEWLINE# def _generate_payload_inner( self , scenario ) : #NEWLINE# #INDENT# requests = scenario . get_requests ( ) #NEWLINE# num_requests = 0 #NEWLINE# with open ( http . payload_file , 'w' ) as fds : #NEWLINE# #INDENT# for request in requests : #NEWLINE# #INDENT# http = self . _build_request ( request , scenario ) #NEWLINE# fds . write ( ( '%s %s\r\n%s\r\n' % ( len ( http ) , request . label . replace ( ' ' , '_' ) , http ) ) ) #NEWLINE# num_requests += 1 #NEWLINE# #UNINDENT# #UNINDENT# if ( not num_requests ) : #NEWLINE# #INDENT# raise ValueError ( "No requests were generated, check your 'requests' section presence" )