MCPcopy
hub / github.com/pyca/cryptography / test_eq

Method test_eq

tests/x509/test_ocsp.py:1196–1217  ·  view source on GitHub ↗
(self, backend)

Source from the content-addressed store, hash-verified

1194 )
1195
1196 def test_eq(self, backend):
1197 sct1 = (
1198 _load_data(
1199 os.path.join("x509", "ocsp", "resp-sct-extension.der"),
1200 ocsp.load_der_ocsp_response,
1201 )
1202 .single_extensions.get_extension_for_class(
1203 x509.SignedCertificateTimestamps
1204 )
1205 .value
1206 )
1207 sct2 = (
1208 _load_data(
1209 os.path.join("x509", "ocsp", "resp-sct-extension.der"),
1210 ocsp.load_der_ocsp_response,
1211 )
1212 .single_extensions.get_extension_for_class(
1213 x509.SignedCertificateTimestamps
1214 )
1215 .value
1216 )
1217 assert sct1 == sct2
1218
1219 def test_ne(self, backend):
1220 sct1 = (

Callers

nothing calls this directly

Calls 2

_load_dataFunction · 0.85

Tested by

no test coverage detected