':return: True if there is CSRF protection enabled in this symfony app'

def has_csrf_token(self, response):

    for tag in mp_doc_parser.get_tags_by_filter(response, ('input',)):
        input_id = tag.attrib.get('id', '')
        if self._csrf_token_re.search(input_id):
            return True
    return False
