#NEWLINE# @ when ( 'storing any new invalid server responses' ) #NEWLINE# def step_impl( context ) : #NEWLINE# #INDENT# 'Go through responses and store any with HTTP protocol errors\n    (as caught by Requests) into the database\n    ' #NEWLINE# new_findings = 0 #NEWLINE# for response in context . responses : #NEWLINE# #INDENT# if ( response . get ( 'server_protocol_error' ) is not None ) : #NEWLINE# #INDENT# if ( fuzzdb . known_false_positive ( context , response ) is False ) : #NEWLINE# #INDENT# fuzzdb . add_false_positive ( context , response ) #NEWLINE# new_findings += 1 #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if ( new_findings > 0 ) : #NEWLINE# #INDENT# context . new_findings += new_findings #NEWLINE# #UNINDENT# assert True