Exemple #1
0
 def test_from_raw(self):
     interface = ExpectStaple.from_raw(self.raw_report)
     assert interface.hostname == 'www.example.com'
     assert interface.date_time == '2014-04-06T13:00:50Z'
     assert interface.port == 443
     assert len(interface.served_certificate_chain) == 1
Exemple #2
0
 def test_from_raw(self):
     interface = ExpectStaple.from_raw(self.raw_report)
     assert interface.hostname == 'www.example.com'
     assert interface.date_time == '2014-04-06T13:00:50Z'
     assert interface.port == 443
     assert len(interface.served_certificate_chain) == 1
def test_from_raw(make_csp_snapshot):
    make_csp_snapshot(ExpectStaple.from_raw(raw_report).to_json())
Exemple #4
0
def test_from_raw(make_csp_snapshot):
    make_csp_snapshot(ExpectStaple.from_raw(raw_report).to_json())