'Sensitive content with INCORRECT cache control headers bug should be
stored in KB.'

def test_cache_control_incorrect_headers(self):

    body = 'abc'
    url = URL('https://www.w3af.com/')
    headers = Headers([('content-type', 'text/html'), ('Pragma', 'Cache'), ('Cache-Control', 'Store')])
    request = FuzzableRequest(url, method='GET')
    resp = HTTPResponse(200, 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), 1)
