Skip to content

Commit ab05f0e

Browse files
committed
Improve test
1 parent 986a60f commit ab05f0e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

sslyze/plugins/http_headers_plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def __init__(self, raw_hpkp_header: str, report_only: bool = False) -> None:
171171

172172

173173
# TODO(AD): Rename this to ParsedExpectCtHeader
174-
class ParsedExpectCTHeader:
174+
class ParsedExpectCtHeader:
175175
"""Expect-CT header returned by the server.
176176
177177
Attributes:
@@ -237,7 +237,7 @@ def __init__(
237237
super().__init__(server_info, scan_command)
238238
self.hsts_header = ParsedHstsHeader(raw_hsts_header) if raw_hsts_header else None
239239
self.hpkp_header = ParsedHpkpHeader(raw_hpkp_header, hpkp_report_only) if raw_hpkp_header else None
240-
self.expect_ct_header = ParsedExpectCTHeader(raw_expect_ct_header) if raw_expect_ct_header else None
240+
self.expect_ct_header = ParsedExpectCtHeader(raw_expect_ct_header) if raw_expect_ct_header else None
241241
self.verified_certificate_chain: List[Certificate] = []
242242
try:
243243
main_trust_store = TrustStoresRepository.get_default().get_main_store()

tests/plugin_tests/test_http_headers_plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def test_expect_ct_enabled(self):
7575

7676
self.assertTrue(plugin_result.expect_ct_header)
7777
self.assertTrue(plugin_result.expect_ct_header.max_age >= 0)
78+
self.assertTrue(plugin_result.expect_ct_header.report_uri)
7879

7980
self.assertTrue(plugin_result.as_text())
8081
self.assertTrue(plugin_result.as_xml())

0 commit comments

Comments
 (0)