Unverified Commit b452f6f9 authored by Philipp Winter's avatar Philipp Winter
Browse files

Discard attribute that's no longer used.

This fixes the following unit test:

[ERROR]
Traceback (most recent call last):
  File "/home/travis/build/NullHypothesis/bridgedb/bridgedb/test/test_https.py", line 177, in test_content_security_policy
    headers = ''.join(self.br.response().info().headers)
builtins.AttributeError: 'HTTPMessage' object has no attribute 'headers'

bridgedb.test.test_https.HTTPTests.test_content_security_policy
parent b0c74f0a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -174,10 +174,10 @@ class HTTPTests(unittest.TestCase):
        self.br.set_debug_http(True)
        self.br.open(HTTP_ROOT)

        headers = ''.join(self.br.response().info().headers)
        headers = self.br.response().info()

        self.assertIn("Content-Security-Policy", headers)
        self.assertIn("default-src 'none';", headers)
        self.assertIn("Content-Security-Policy", headers.keys())
        self.assertIn("default-src 'none';", ''.join(headers.values()))

    def test_404(self):
        """Asking for a non-existent resource should yield our custom 404 page,