'Test case in which 1 same policy is specified using 3 differents CSP
headers.'

def test_retrieve_csp_policies_with_policies_case01(self):

    hrds = {}
    hrds[CSP_HEADER_W3C] = (CSP_DIRECTIVE_OBJECT + "    'self'")
    hrds[CSP_HEADER_FIREFOX] = (CSP_DIRECTIVE_OBJECT + '    *')
    hrds[CSP_HEADER_CHROME] = (CSP_DIRECTIVE_OBJECT + '    *.sample.com')
    csp_headers = Headers(hrds.items())
    http_response = HTTPResponse(200, '', csp_headers, self.url, self.url)
    policies = retrieve_csp_policies(http_response)
    self.assertEqual(len(policies), 1)
    self.assertEqual(len(policies[CSP_DIRECTIVE_OBJECT]), 3)
    self.assertTrue(('self' in policies[CSP_DIRECTIVE_OBJECT]))
    self.assertTrue(('*' in policies[CSP_DIRECTIVE_OBJECT]))
    self.assertTrue(('*.sample.com' in policies[CSP_DIRECTIVE_OBJECT]))
