'Sensitive content with cache control meta tags so no bug is stored in KB.'

def test_cache_control_correct_meta(self):

    body = 'abc'
    meta_1 = '<meta    http-equiv="Pragma"    content="no-cache">'
    meta_2 = '<meta    http-equiv="Cache-Control"    content="no-store">'
    html = '<html><head>%s%s</head><body>%s</body></html>'
    response_body = (html % (meta_1, meta_2, body))
    url = URL('https://www.w3af.com/')
    headers = Headers([('content-type', 'text/html')])
    request = FuzzableRequest(url, method='GET')
    resp = HTTPResponse(200, response_body, headers, url, url, _id=1)
    self.plugin.grep(request, resp)
    self.plugin.end()
    infos = kb.kb.get('cache_control', 'cache_control')
    self.assertEquals(len(infos), 0)
