<s> from yapsy . IPlugin import IPlugin <EOL> import logging <EOL> LOG = logging . getLogger ( '<STR_LIT>' ) <EOL> class ResponseBodyDoesntContain ( IPlugin ) : <EOL> @ staticmethod <EOL> def run ( req ) : <EOL> banned_text = req . test [ '<STR_LIT>' ] [ '<STR_LIT>' ] <EOL> try : <EOL> req_content = req . req . content . decode ( ) <EOL> except UnicodeDecodeError : <EOL> req_content = req . req . content <EOL> if banned_text in req_content : <EOL> return req . fail_test ( "<STR_LIT>" . format ( banned_text ) ) <EOL> else : <EOL> return req . pass_test ( "<STR_LIT>" . format ( banned_text ) ) </s>
