diff options
author | Felix Hammerl <fhammerl@thoughtworks.com> | 2016-05-13 11:22:01 +0200 |
---|---|---|
committer | Felix Hammerl <fhammerl@thoughtworks.com> | 2016-05-13 11:24:30 +0200 |
commit | 28ce52715394e1b10774a2d29b7d11e194062d05 (patch) | |
tree | 8eb21c7a4c7c4aef858b70c76bdf86c36cf38be7 /service/test/unit/resources/test_sandbox_resource.py | |
parent | a2fa18ea2c47571c07b6d4bae387274ac0ccdea6 (diff) |
Issue #691: Refactor to Twisted 16.1.1
Diffstat (limited to 'service/test/unit/resources/test_sandbox_resource.py')
-rw-r--r-- | service/test/unit/resources/test_sandbox_resource.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/service/test/unit/resources/test_sandbox_resource.py b/service/test/unit/resources/test_sandbox_resource.py index 3db43e12..98b88b2d 100644 --- a/service/test/unit/resources/test_sandbox_resource.py +++ b/service/test/unit/resources/test_sandbox_resource.py @@ -33,6 +33,6 @@ class TestSandBoxResource(unittest.TestCase): yield self.web.get(request) - self.assertEquals(expected_csp_headers, request.outgoingHeaders.get('X-Content-Security-Policy'.lower())) - self.assertEquals(expected_csp_headers, request.outgoingHeaders.get('Content-Security-Policy'.lower())) - self.assertEquals(expected_csp_headers, request.outgoingHeaders.get('X-Webkit-CSP'.lower())) + self.assertEquals(expected_csp_headers, request.responseHeaders.getRawHeaders('X-Content-Security-Policy'.lower())[0]) + self.assertEquals(expected_csp_headers, request.responseHeaders.getRawHeaders('Content-Security-Policy'.lower())[0]) + self.assertEquals(expected_csp_headers, request.responseHeaders.getRawHeaders('X-Webkit-CSP'.lower())[0]) |